// ==UserScript== // @name Qzone Cleaner // @namespace http://tampermonkey.net/ // @version 1.4 // @description 屏蔽QQ空间广告等,屏蔽/只看一些用户的点赞,点赞并隐藏一些用户的动态,隐藏一些用户的评论。 // @author H-OH // @match https://user.qzone.qq.com/* // @grant GM_setValue // @grant GM_getValue // @downloadURL none // ==/UserScript== (function() { 'use strict'; var only=false; var only2=false; function killname() { var use=GM_getValue("killname","")+"\n"; var add=""; var name=new Array(); for (var c=0;c a"); for (var t=0;t已为您隐藏"+who+"的一条评论。

"; tokill[t].parentNode.appendChild(note); tokill[t].style.display="none"; } } else { if (tokill[t].style.display!="block") { var less=document.getElementsByClassName("h"+who); for (var r=0;r"; set.innerHTML+="
反向屏蔽"; set.innerHTML+="

点赞并隐藏以下用户动态:

"; set.innerHTML+="

屏蔽以下用户评论:

"; set.innerHTML+="
反向屏蔽"; document.getElementById("pageContent").appendChild(set); document.getElementById("name").value=GM_getValue("killname",""); document.getElementById("save").onclick=function() { GM_setValue("killname",document.getElementById("name").value); document.getElementById("save").innerText="已保存"; setTimeout(function(){document.getElementById("save").innerText="保存";},2000); } document.getElementById("name1").value=GM_getValue("killname1",""); document.getElementById("save1").onclick=function() { GM_setValue("killname1",document.getElementById("name1").value); document.getElementById("save1").innerText="已保存"; setTimeout(function(){document.getElementById("save1").innerText="保存";},2000); } document.getElementById("name2").value=GM_getValue("killname2",""); document.getElementById("save2").onclick=function() { GM_setValue("killname2",document.getElementById("name2").value); document.getElementById("save2").innerText="已保存"; setTimeout(function(){document.getElementById("save2").innerText="保存";},2000); } } if (GM_getValue("killonly","false")=="true") {only=true;} if (GM_getValue("killonly2","false")=="true") {only2=true;} if (document.querySelectorAll("#only").length) { if (only) {document.getElementById("only").checked=true;} document.getElementById("only").onclick=function() { if (document.getElementById("only").checked) {GM_setValue("killonly","true");only=true;} else {GM_setValue("killonly","false");only=false;} } } if (document.querySelectorAll("#only2").length) { if (only2) {document.getElementById("only2").checked=true;} document.getElementById("only2").onclick=function() { if (document.getElementById("only2").checked) {GM_setValue("killonly2","true");only2=true;} else {GM_setValue("killonly2","false");only2=false;} } } })();