? ? ? 文章

最新分享12个火狐JS小书签

最新分享12个火狐JS小书签

豆瓣音乐:

javascript:if(!window.open(%22http://douban.fm/radio%22,%22D%22,%22height=186,width=420,toolbar=no,menubar=no,scrollbars=no,location=no,status=no%22)){location.href=%22http://douban.fm/radio%22}

封禁精品贴最后回复ID(文科版):

javascript:(function(){var%20tbs=PageData.tbs;var%20fid=PageData.forum.id;var%20reg=/^[a-z0-9.]*$/gi;$(".j_thread_list").each(function(){if($(this).data("field").is_good){var%20lastID=$(this).find(".tb_icon_author_rely.j_replyer%20a");if(lastID.length){var%20un=lastID.data("field").un;reg.test(un)&&block(un);}}});function%20block(id){var%20json={"user_name[]":id,"day":"10","fid":fid,"tbs":tbs,"ie":"gbk","reason":"%E8%BE%B1%E9%AA%82%E5%90%A7%E5%8A%A1%EF%BC%8C%E5%AF%B9%E5%90%A7%E5%8A%A1%E5%B7%A5%E4%BD%9C%E9%80%A0%E6%88%90%E5%B9%B2%E6%89%B0%EF%BC%8C%E7%BB%99%E4%BA%88%E5%B0%81%E7%A6%81%E5%A4%84%E7%BD%9A%E3%80%82"};$.post("http://tieba.baidu.com/pmc/blockid",json,function(){});}})();

封禁精品贴最后回复ID(行客版):

javascript:(function(){var%20tbs=PageData.tbs;var%20fid=PageData.forum.id;var%20reg=/^[a-z0-9.]*$/gi;$(".j_thread_list").each(function(){if($(this).data("field").is_good){var%20lastID=$(this).find(".tb_icon_author_rely.j_replyer%20a");if(lastID.length){var%20un=lastID.data("field").un;reg.test(un)&&block(un);}}});function%20block(id){var%20json={"user_name[]":id,"day":"10","fid":fid,"tbs":tbs,"ie":"gbk","reason":"%E8%BE%B1%E9%AA%82%E5%90%A7%E5%8A%A1%EF%BC%8C%E5%AF%B9%E5%90%A7%E5%8A%A1%E5%B7%A5%E4%BD%9C%E9%80%A0%E6%88%90%E5%B9%B2%E6%89%B0%EF%BC%8C%E7%BB%99%E4%BA%88%E5%B0%81%E7%A6%81%E5%A4%84%E7%BD%9A%E3%80%82"};$.post("http://tieba.baidu.com/pmc/blockid",json,function(){});}})();

获取cookie(当前页面-全部复制):

javascript:alert(document.cookie);

批量获取百度网盘下载链接:

javascript:
/*遍历度盘分享,获取全部下载链接*/
/*支持分享根目录和目录分享文件*/
var website='http://dplink.duapp.com';/*这个网址自己搭建了的话可以换,原贴http://tieba.baidu.com/p/2411577113?pid=34437572496#34437572496*/
shareid=location.href.match(/shareid=[0-9]{1,20}/);
shareid=shareid&&shareid[0].replace('shareid=','')||'';
uk=location.href.match(/uk=[0-9]{1,20}/)[0].replace('uk=','');
_dir=location.href.match(/path=.*$/);
_dir=_dir&&_dir[0].replace('path=','')||'/';
var digui=confirm('是否递归访问子目录');
if(shareid)
	_url='http://pan.baidu.com/share/list';
else
	_url='http://pan.baidu.com/share/homerecord';
t_page=5;
$.ajaxSetup({
  async: false
  }); /*设置同步请求*/
var tab='   ';
if(shareid&&_dir=='/')
	throw(-1);
if(shareid)
{
	document.write(''+decodeURIComponent(_dir).replace('\/','')+'');
	document.write(decodeURIComponent(_dir).replace('\/','')+':
'); } else { document.write(''+$('title').html().replace('百度云 网盘-','')+''); document.write($('title').html()+':
'); } function getLinks(pg,__dir,floor) { var ctab=''; for(var i=0;i<=floor;i++) ctab+=tab;/*目录树的tab符*/ $.get(_url, {t:Date.parse(new Date()),channel:'chunlei',clienttype:'0',web:'1',num:'100',page:pg, dir:decodeURIComponent(__dir),uk:uk,shareid:shareid,order:'time',desc:'1'}, function(data) { for(var pos=0;pos'); digui&&getLinks(1,data['list'][pos]['path'],floor+1);/*若是目录则继续递归访问*/ } else if(shareid) { var content=''+data['list'][pos]['server_filename']+'
'; document.write(ctab+content); } else if((!shareid)&&data['list'][pos]['typicalCategory']==-1) { document.write(ctab+data['list'][pos]['typicalPath']+':'+'
'); _dir=data['list'][pos]['typicalPath']; shareid=data['list'][pos]['shareId']; _url='http://pan.baidu.com/share/list'; digui&&getLinks(1,data['list'][pos]['typicalPath'],floor+1);/*若是目录则继续递归访问*/ _dir='';shareid='';_url='http://pan.baidu.com/share/homerecord';/*复原*/ } else { var content=''+data['list'][pos]['typicalPath']+'
'; document.write(ctab+content); } } if(data['list'].length>=100)/*列表大于100继续递归第二页*/ getLinks(pg+1,__dir,floor); }); } getLinks(1,_dir,0); void(0);

批量获取图片地址:

javascript:outText='';for(i=0;i'+document.images%5Bi%5D.height+''+document.images%5Bi%5D.width+''+document.images%5Bi%5D.src+''}};if(outText!=''){imgWindow=window.open('','imgWin','width=800,height=600');imgWindow.document.write%20('ImageHeightWidthURL'+outText+'');imgWindow.document.close()}else{alert('No%20images!')}

破解右键复制:

javascript:(function(){var%20doc=document;var%20bd=doc.body;bd.onselectstart=bd.oncopy=bd.onpaste=bd.onkeydown=bd.oncontextmenu=bd.onmousemove=bd.onselectstart=bd.ondragstart=doc.onselectstart=doc.oncopy=doc.onpaste=doc.onkeydown=doc.oncontextmenu=null;doc.onselectstart=doc.oncontextmenu=doc.onmousedown=doc.onkeydown=function%20(){return%20true;};with(document.wrappedJSObject||document){onmouseup=null;onmousedown=null;oncontextmenu=null;}var%20arAllElements=document.getElementsByTagName('*');for(var%20i=arAllElements.length-1;i>=0;i--){var%20elmOne=arAllElements[i];with(elmOne.wrappedJSObject||elmOne){onmouseup=null;onmousedown=null;}}var%20head=document.getElementsByTagName('head')[0];if(head){var%20style=document.createElement('style');style.type='text/css';style.innerHTML=%22html,*{-moz-user-select:auto!important;}%22;head.appendChild(style);}void(0);})();

貼吧主樓繁體字(繁体字):

javascript:var%20m=prompt("%E9%BE%99");var%20c=A2W(m);function%20A2W(s){var%20r="";for(var%20i=0;i

网页元素编辑:

javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200

炫彩字体(网络孤独行客):

javascript:post='';$("#props_content_wrap%20img").each(function(){var%20width=$(this).width();var%20height=$(this).height();var%20src=$(this).attr("src");src=encodeURIComponent(src);post=post+''});$("#ueditor_replace").html(post);$(".j_btn_cancel").click();$(".j_submit").click();void%200;

有道网页翻译2.0:

javascript:if(typeof%20yXzyxe58==typeof%20alert)yXzyxe58();%20void((function()%20{var%20element%20=%20document.createElement('script');element.id%20=%20'outfox_seed_js';element.charset%20=%20'utf-8',element.setAttribute('src',%20'http://fanyi.youdao.com/web2/seed.js?'%20+%20Date.parse(new%20Date()));document.body.appendChild(element);})())

元素射杀(方向键 空格键操作):

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);

对你有用的,或自己喜欢的,欢迎收藏备用。

原文链接:,转发请注明来源!
0 0

发表评论

  • 评论6则,共1页,当前第1
    • 二货四号

      从豆瓣音乐书签那儿得到的灵感,自己制作了一个百度音乐小书签:

      javascript:if(!window.open(%22http://fm.baidu.com%22,%22D%22,%22height=186,width=420,toolbar=no,menubar=no,scrollbars=no,location=no,status=no%22)){location.href=%22http://fm.baidu.com%22}

      0 0 Firefox 16.0 Firefox 16.0 Windows 7 x64 Edition Windows 7 x64 Edition回复
    • 二货四号

      我再补填一个 购物党小书签 :

      javascript:(function(){var%20s;s=document.createElement("script");s.type="text/javascript";s.charset="utf-8";s.src="http://www.gwdang.com/get.js?f=/js/gwdang_extension.js";document.body.appendChild(s);})();

      0 0 Firefox 16.0 Firefox 16.0 Windows 7 x64 Edition Windows 7 x64 Edition回复