`

Greasemonkey猴子脚本

阅读更多
// ==UserScript==
// @name           china_pub
// @namespace      wintys
// @include        http://www.china-pub.com/*
// ==/UserScript==

/*
功能:使china-pub目录页可复制
时间:2009-05
Author: Winty
E-mail: wintys@gmail.com
*/


/*使可以复制*/
var body = document.body;
body.setAttribute("onselect" , "");
body.setAttribute("oncopy" , "");
body.setAttribute("oncontextmenu", "");
body.setAttribute("onmouseup", "");
body.setAttribute("onmousemove", "");

/*去除防复制的无用字符*/
var white = document.getElementsByTagName("font");
for(var item = 0 ; item < white.length; item++){
    white[item].removeChild(white[item].childNodes[0]);
}





// ==UserScript==
// @name           qqshuqian
// @namespace      wintys
// @description     delete all bookmarks in qqshuqian
// @include        http://shuqian.qq.com/home/
// ==/UserScript==

//批量删除QQ书签

//只需要修改begin 和 end值即可

var frmDelete = document.getElementById("frmDelete");
var linkID = frmDelete.elements[0];

//计算linkID值
//linkID形如:"1626996,1626997,1626998,1626999"
//latest linkID-2009-8-3:1631912
var begin = 1632307;//1625972;
var end =    1633756;//1627177;
var linkIDvalue = "";
while(begin < end){
    linkIDvalue += begin + ",";
    begin++;
}
linkIDvalue += end;

//提交
linkID.value = linkIDvalue;
frmDelete.submit();
window.alert("finished");
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics