更新内容:
- 可选择需要清理的项目
- 记录上次选择的QQ路径,方便使用
点击下载QQ清理工具
FireFox下的greasemonkey脚本
// ==UserScript==
// @name bbs.cslg.cn
// @namespace bbs.cslg.cn
// @description signatures filter
// @include http://bbs.cslg.cn/*
// ==/UserScript==
(function(){
var el;
var xpath = "//td[@class='signed']";
var els = document.evaluate(xpath, document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < els.snapshotLength; i++) {
el = els.snapshotItem(i);
el.parentNode.removeChild(el);
}
}) ();
// ==UserScript==
// @name 096.cc
// @namespace 096.cc
// @description 096.cc image filter
// @include http://www.096.cc/*
// ==/UserScript==
(function(){
var href = window.location.href;
if(href.indexOf("ShowForum.asp")!=-1)
hideForum();
else if(href.indexOf("ShowPost.asp")!=-1)
hideThread();
else if(href.indexOf("Default.asp")!=-1 || href=="http://www.096.cc/" )
hideMain();
HideCommon();
function HideCommon(){
var xpath;
xpath="/html/body/table[2]";
remove(xpath);
xpath="/html/body/table[1]";
remove(xpath);
xpath="//table[@bgcolor='#333333']";
remove(xpath);
}
function hideMain(){
var xpath;
xpath="/html/body/table[10]";
remove(xpath);
xpath="/html/body/table[5]";
remove(xpath);
}
function hideForum(){
var xpath;
xpath="/html/body/table[9]";
remove(xpath);
}
function hideThread(){
var xpath="//img";
var el;
var els = document.evaluate(xpath, document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < els.snapshotLength; i++) {
el = els.snapshotItem(i);
if(el.src.indexOf("UpFile/UpAttachment")!=-1 || el.src.indexOf("images/upface")!=-1 || el.src.indexOf("images/face")!=-1 || el.src.indexOf("UpFile/UpFace")!=-1)
el.parentNode.removeChild(el);
}
}
function remove(xpath){
var el;
var els = document.evaluate(xpath, document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < els.snapshotLength; i++) {
el = els.snapshotItem(i);
el.parentNode.removeChild(el);
}
}
}) ();
写了一个 greasemonkey 的脚本,在FireFox中安装greasemonkey插件后,使用下面的这段脚本,可以过滤所有的广告和签名,世界很清静
// ==UserScript==
// @name 090广告签名图片过滤
// @version 0.1.0
// @description Hidden sign imges in Dvbbs
// @namespace http://bbs.wm090.com/
// @include http://bbs.wm090.com/*
// ==/UserScript==
(function(){
var xpath = "//div[@class='post']/div[@id]";
remove(xpath);
xpath = "//*[@id='topbar_mid_m']";
remove(xpath);
xpath = "/html/body/table";
remove(xpath);
xpath= "//div[@style='margin: 2px auto 0px;']";
remove(xpath);
function remove(xpath){
var el;
var els = document.evaluate(xpath, document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < els.snapshotLength; i++) {
el = els.snapshotItem(i);
el.parentNode.removeChild(el);
}
}
}) ();