分享

我收藏的书签脚本【3月30号更新】

 李昶甫 2014-05-21
1、硕鼠下载视频:

  1. javascript:location.href = 'http://www./parse.php?flag=&format=&kw=' + location.href;
复制代码


2、硕鼠下载本页视频:
  1. javascript:window.open('http://www./parse.php?kw=' +encodeURIComponent(document.location.href),'getA','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=930, height=600');void(0);
复制代码


3、自动回复隐藏贴:
  1. javascript:void((function(){var e=document.createElement('script');e.setAttribute('src',' https:///scripts/source/132930.user.js');document.body.appendChild(e);})())
复制代码


4、明文显示密码:
  1. javascript:(function()%7Bvar%20IN,F;IN=document.getElementsByTagName('input');for(var%20i=0;i<IN.length;i++)%7BF=IN%5Bi%5D;if(F.type.toLowerCase()=='password')%7Btry%7BF.type='text'%7Dcatch(r)%7Bvar%20n,Fa;n=document.createElement('input');Fa=F.attributes;for(var%20ii=0;ii<Fa.length;ii++)%7Bvar%20k,knn,knv;k=Fa%5Bii%5D;knn=k.nodeName;knv=k.nodeValue;if(knn.toLowerCase()!='type')%7Bif(knn!='height'&&knn!='width'&!!knv)n%5Bknn%5D=knv%7D%7D;F.parentNode.replaceChild(n,F)%7D%7D%7D%7D)()
复制代码


5、百度贴吧贴图:
  1. javascript:void((function(){var e=document.createElement("script");e.setAttribute("id","bdtbmarklet");e.setAttribute("type","text/javascript");e.setAttribute("charset","UTF-8");e.setAttribute("src","http://static.tieba.baidu.com/tb/static-album/lib/bdtbmarklet.js?r="+Math.random()*99999999);document.body.appendChild(e)})());
复制代码


6、如意淘:
  1. javascript:(function(){var d=document,s=d.createElement('script'),h=d.getElementsByTagName('head')[0],t=new Date();s.src='http://ruyi./extension/bookmarklet.js?t='+t.getFullYear()+t.getMonth()+t.getDate();s.charset='utf-8';if(h){h.appendChild(s);}})();
复制代码


7、短网址:
  1. javascript:function iprl5(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);if (!l) {alert('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%BD%91%E5%9D%80%EF%BC%81');return;}d.title='(Shortening...) '+d.title;z.setAttribute('src','http://www./webapp/url_shortener_plugin.php?longUrl='+encodeURIComponent(l));b.appendChild(z);}catch(e){alert('%E8%AF%B7%E7%AD%89%E5%BE%85%E7%BD%91%E9%A1%B5%E5%8A%A0%E8%BD%BD%E5%AE%8C%E6%AF%95%EF%BC%81');}}iprl5();void(0)
复制代码


8、夜间模式:
  1. javascript:var nuStyle=document.createElement('link');nuStyle.rel='stylesheet';nuStyle.rev='stylesheet';nuStyle.href='data:text/css,*{background:#222222 !important;color:#ffffff !important;} :link{color:#ffffff !important;} :visited{color:#888888 !important;}';void(document.documentElement.childNodes[0].appendChild(nuStyle));
复制代码


9、百度文辑搜索:
  1. javascript:var ax=prompt('%E7%99%BE%E5%BA%A6%E6%96%87%E8%BE%91%E6%90%9C%E7%B4%A2\n%E8%AF%B7%E8%BE%93%E5%85%A5%E6%90%9C%E7%B4%A2%E5%85%B3%E9%94%AE%E5%AD%97','');if(ax.length>0){window.open('http://www.google.com/search?hl=zh-CN&client=opera&q=site:http://wenku.baidu.com/album/view'+' '+encodeURIComponent(ax))};void(0)
复制代码


10、百度站内搜索1:
  1. javascript:(function(){ p=prompt('%E5%9C%A8 '+document.location.href.split('/')[2]+' %E4%B8%AD%E6%90%9C%E7%B4%A2',''); if(p){ document.open('http://www.baidu.com/s?wd=site:'+document.location.href.split('/')[2]+' '+p,'','')} })();
复制代码


11、百度站内搜索2:
  1. javascript:location.href='http://www.baidu.com/s?ct=2097152&tn=msvista_pg&si='+window.location.hostname+'&sts='+window.location.hostname+'&ie=utf-8&wd=%s'
复制代码


12、谷歌站内搜索1:
  1. javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt('\u8BF7\u8F93\u5165\u8981\u7AD9\u5185\u641C\u7D22\u7684\u5173\u952E\u8BCD', ""); if (q!=null) location=("http://www./search?num=100&q=site:" + escape(location.hostname) + " \"" + encodeURIComponent(q.replace(/\"/g,"")) + "\"").replace(/ /g, "+"); void 0
复制代码


13、谷歌站内搜索2:
  1. javascript:var ax=prompt('%E8%B0%B7%E6%AD%8C%E7%AB%99%E5%86%85%E6%90%9C%E7%B4%A2\n%E8%AF%B7%E8%BE%93%E5%85%A5%E6%90%9C%E7%B4%A2%E5%85%B3%E9%94%AE%E5%AD%97','');if(ax.length>0){window.open('http://www.google.com/search?hl=zh-CN&client=opera&q=site:'+encodeURIComponent(location.hostname)+' '+encodeURIComponent(ax))};void(0)
复制代码


14、自动翻页:
  1. javascript:(function(){if(window['pgzp']){_pgzpToggleBookmarklet();}else{window._page_zipper_is_bookmarklet=true;window._page_zipper=document.createElement('script');window._page_zipper.type='text/javascript';window._page_zipper.src='http://www./static/pagezipper/pagezipper_10.js';document.getElementsByTagName('head')[0].appendChild(window._page_zipper);}})();
复制代码


15、向上一层:
  1. javascript:if (location.pathname == '/'); else if (location.pathname.charAt(location.pathname.length-1) == '/') location = '..'; else location = '.'; void 0
复制代码


16、阅读助手:
  1. javascript:(function(){readStyle='style-newspaper';readSize='size-large';readMargin='margin-wide';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab./experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab./experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css.media='screen';document.getElementsByTagName('head')%5B0%5D.appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab./experiments/readability/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')%5B0%5D.appendChild(_readability_print_css);})();
复制代码


17、左右分屏:
  1. javascript:document.write('%3CHTML%3E%3CHEAD%3E%3C/HEAD%3E%3CFRAMESET%20COLS=\'50%25,*\'%3E%3CFRAME%20SRC='%20+%20location.href%20+%20'%3E%3CFRAME%20SRC='%20+%20location.href%20+%20'%3E%3C/FRAMESET%3E%3C/HTML%3E')
复制代码


18、上下分屏:
  1. javascript:document.write('<HTML><HEAD></HEAD><FRAMESET ROWS=\'50%25,*\'><FRAME SRC=' + location.href + '><FRAME SRC=' + location.href + '></FRAMESET></HTML>')
复制代码


19、相似网页搜索:
  1. javascript:(function(){ document.location.href='http://www.google.com/search?q=related:'+escape(document.location.href) })();
复制代码


20、列出所有图片:
  1. javascript:outText='';for(i=0;i<document.images.length;i++){if(outText.indexOf(document.images%5Bi%5D.src)==-1){outText+='<tr><td><img src='+document.images%5Bi%5D.src+'></td><td>'+document.images%5Bi%5D.height+'</td><td>'+document.images%5Bi%5D.width+'</td><td>'+document.images%5Bi%5D.src+'</td></tr>'}};if(outText!=''){imgWindow=window.open('','imgWin','width=800,height=600');imgWindow.document.write ('<table border=1 cellpadding=10><tr><th>Image</th><th>Height</th><th>Width</th><th>URL</th></tr>'+outText+'</table>');imgWindow.document.close()}else{alert('No images!')}
复制代码


21、列出指定大小图片:
  1. javascript:(function(){var html ='';for(var i=0;i<document.images.length;i++){var img = document.images[i];if(img.width>100&& img.width<800 && img.height>200&& img.height<1000){html+='<img src='+img.src+' />';}} document.body.innerHTML = html;})()
复制代码


22、显示宽度大于100的图片:
  1. javascript:outText='';for(i=0;i<document.images.length;i++){if(outText.indexOf(document.images[i].src)==-1&document.images[i].width>100){outText+='<tr><td><img src='+document.images[i].src+' /></td></tr></br></br>'}};if(outText!=''){document.body.innerHTML = outText}else{alert('No images!')}
复制代码


23、必应翻译:
  1. javascript:(function(){var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'http://labs./bookmarklet/default.aspx?f=js&to=zh-chs'; document.body.insertBefore(s, document.body.firstChild);})()
复制代码

24、谷歌对比翻译:
  1. javascript:(function(){ document.location.href='http://translate.google.com/translate?u='+escape(document.location.href) })();
复制代码


25、海词划词搜:
  1. javascript:void((function() {var element=document.createElement('script'); element.setAttribute('src', 'http://dict.cn/hc/init.php'); document.body.appendChild(element);})())
复制代码


26、词句划词翻译:
  1. javascript:void((function(){if(window.Como&&window.Como.someyi){Como.someyi.open()}else{var a=document.createElement('script');a.setAttribute('type','text/javascript');var b=document.charset?document.charset:document.characterSet;var c=b.toLowerCase()=='gb2312'?'pack-gb2312.js':'pack-utf8.js';a.setAttribute('src','http://yi./'+c);document.getElementsByTagName('head').item(0).appendChild(a);Text.prototype.tagName='#text'}})())
复制代码


27、汉语字典:
  1. javascript:void((function() {var element=document.createElement('script'); element.setAttribute('src', 'http://www.zdic.net/tools/zih.asp'); document.body.appendChild(element);})())
复制代码


28、简繁转换:
  1. javascript:(function(){var%20s=document.getElementById("tongwenlet_tw");if(s!=null){document.body.removeChild(s);}var%20s=document.createElement("script");s.language="javascript";s.type="text/javascript";s.src="http://tongwen./NewTongWen/tools/bookmarklet_tw.js";s.id="tongwenlet_tw";document.body.appendChild(s);%20})();
复制代码


29、繁简转换:
  1. javascript:(function(){var s=document.getElementById("tongwenlet_cn");if(s!=null){document.body.removeChild(s);}var s=document.createElement("script");s.language="javascript";s.type="text/javascript";s.src="http://tongwen./NewTongWen/tools/bookmarklet_cn.js";s.id="tongwenlet_cn";document.body.appendChild(s); })();
复制代码


30、yunfile网盘免等待:
  1. javascript:redirectDownPage();void(0)
复制代码


31、华为网盘免登录下载:
  1. javascript:globallinkdata.data['profile.productid']=30;alert("%E5%B7%B2%E8%A7%A3%E9%99%A4%E9%99%90%E5%88%B6");
复制代码


32、绕过华军验证码下载:
  1. javascript:showDownlist(type,'checkok');
复制代码


33、解除右键限制:
  1. javascript:function%20kill(d){d.onmousedown=d.onmouseup=d.oncontextmenu=d.onselectstart=d.ondragstart=function(){return%20true;};}try{kill(document);for(var%20j=0;F=frames[j];++j)kill(F.document);}catch(e){}javascript:function%20kill(d){d.onmousedown=d.onmouseup=d.oncontextmenu=d.onselectstart=d.ondragstart=function(){return%20true;};}try{kill(document);for(var%20j=0;F=frames[j];++j)kill(F.document);}catch(e){}
复制代码


34、破解右键限制:
  1. javascript:alert(document.body.oncontextmenu=document.body.onmouseup=document.body.onmousemove=document.body.onclick=document.body.onselectstart =document.body.oncopy=document.onmousedown = document.onkeydown =null)
复制代码


35、解除网页限制:
  1. javascript:(function(){eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 2=8;5 3=2.K;3.7=3.k=3.e=3.9=3.6=3.y=3.7=3.z=2.7=2.k=2.e=2.9=2.6=4;2.7=2.6=2.c=2.9=p(){r t};g(8.n||8){d=4;c=4;6=4}5 a=8.15(\'*\');o(5 i=a.q-1;i>=0;i--){5 b=a;g(b.n||b){d=4;c=4}}s(h(\'%u%v%w%x%j%A%B%C%j%D\')+\'\\E\');3.m.13=\'14!f\';3.m.16=\'12!f\';',62,70,'||doc|bd|null|var|oncontextmenu|onselectstart|document|onkeydown|arAllElements|elmOne|onmousedown|onmouseup|onpaste|important|with|unescape||u5236|oncopy|u7528|style|wrappedJSObject|for|function|length|return|alert|true|u5DF2|u89E3|u9664|u590D|onmousemove|ondragstart|u53F3|u952E|u9650|uFF01|u000d|u66F4|u591A|u7CBE|u5F69|u5B9E|body|u5E94|uFF0C|u8BF7|u5173|u6CE8|u300E|u5F02|u6B21|u5143|u8F6F|u4EF6|u4E16|u754C|u300F|u000d | | |text|webkitUserSelect|auto|getElementsByTagName|MozUserSelect|u4E0E'.split('|'),0,{}))})()
复制代码


36、显示时间:
  1. javascript:void((function(t){alert(t.toLocaleString()+' %E6%98%9F%E6%9C%9F'+(['%E5%A4%A9','%E4%B8%80','%E4%BA%8C','%E4%B8%89','%E5%9B%9B','%E4%BA%94','%E5%85%AD'])[t.getDay()])})(new Date()));
复制代码


37、简单计算:
  1. javascript:void((function(s){try{alert(eval(s))}catch(e){alert("%E6%97%A0%E6%B3%95%E8%A7%A3%E6%9E%90%E8%A1%A8%E8%BE%BE%E5%BC%8F:(")}})(prompt("%E8%AF%B7%E8%BE%93%E5%85%A5%E8%A1%A8%E8%BE%BE%E5%BC%8F:",0)));
复制代码


38、链接变文本【按Ctrl】
  1. javascript:(function(){var h,checked=true,down=false;document.addEventListener('mouseover',function(e){var link,c='',target=e.target;if(target.nodeName=='A'){if(target.hasChildNodes){for(var i=0;i<target.childNodes.length;i++){if(target.childNodes[i].nodeName=='INPUT')return;}}link=target;}if(target.parentNode.nodeName=='A'&&target.nodeName!='IMG'&&target.nodeName!='INPUT'){link=target.parentNode;}if(!link)return;if(checked){h=link.href;if(link.style.cssText)c=link.style.cssText;}function _click(e){link.removeEventListener(e.type,arguments.callee,false);e.preventDefault();}function _keydown(e){var k=parseInt(e.keyCode);if(k<48&&k!=17)return;document.removeEventListener(e.type,arguments.callee,false);down=true;link.removeAttribute('href');link.setAttribute('style',c+'cursor:text!important;');link.addEventListener('click',_click,false);}document.addEventListener('keydown',_keydown,false);link.addEventListener('mouseout',function(e){var k=link.compareDocumentPosition(e.relatedTarget);if(k==20||k==0){checked=false;}else{link.removeEventListener(e.type,arguments.callee,false);link.removeEventListener('click',_click,false);document.removeEventListener('keydown',_keydown,false);checked=true;if(down){down=false;link.setAttribute('href',h);if(c==''){link.removeAttribute('style');}else{link.setAttribute('style',c);}}}},false);},false);})();
复制代码


39、高亮关键词:
  1. javascript: ( function (){ var count=0, text, dv;text=prompt ( "Search phrase:", "" ) ;if ( text==null  ||  text.length==0 ) return;dv=document.defaultView;function searchWithinNode ( node, te, len ){ var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if (  node.nodeType==3  ){ pos=node.data.toUpperCase () .indexOf ( te ) ;if ( pos>=0 ){ spannode=document.createElement ( "SPAN" ) ;spannode.style.backgroundColor="yellow";middlebit=node.splitText ( pos ) ;endbit=middlebit.splitText ( len ) ;middleclone=middlebit.cloneNode ( true ) ;spannode.appendChild ( middleclone ) ;middlebit.parentNode.replaceChild ( spannode,middlebit ) ;++count;skip=1; }} else if (  node.nodeType==1&& node.childNodes && node.tagName.toUpperCase () !="SCRIPT" && node.tagName.toUpperCase!="STYLE" ){ for  ( var child=0; child <  node.childNodes.length; ++child ){ child=child+searchWithinNode ( node.childNodes[child], te, len ) ; }} return skip; } window.status="Searching for '"+text+"'...";searchWithinNode ( document.body, text.toUpperCase () , text.length ) ;window.status="Found "+count+" occurrence"+ ( count==1?"":"s" ) +" of '"+text+"'."; })() ;
复制代码


40、安全检查:
  1. javascript:(function%28%29%7Bvar f%3Ddocument.getElementById%28%27wot-bookmarklet%27%29%3Bif%28f%29%7Bf.parentNode.removeChild%28f%29%3Breturn%3B%7Dvar l%3Dlocation.hostname%3Bif%28l%26%26l.length%29%7Bf%3Ddocument.createElement%28%27iframe%27%29%3Bif%28f%29%7Bf.setAttribute%28%27id%27%2C%27wot-bookmarklet%27%29%3Bf.setAttribute%28%27src%27%2C%27http%3A//www.mywot.com/bookmarklet/%27+encodeURIComponent%28location.hostname%29%29%3Bf.setAttribute%28%27frameborder%27%2C0%29%3Bf.setAttribute%28%27scrolling%27%2C%27no%27%29%3Bf.setAttribute%28%27style%27%2C%27position%3Afixed%3Btop%3A10px%3Bleft%3A10px%3B%27+%27width%3A135px%3Bheight%3A235px%3Bborder%3A0%3Bmargin%3A0%3Bpadding%3A0%3Bz-index%3A10487575%3B%27%29%3Bif%28document.body%29%7Bdocument.body.appendChild%28f%29%3B%7D%7D%7D%7D)()
复制代码


41、百度搜藏【不弹窗】:
  1. javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);location=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ieo%22; void 0
复制代码


42、百度搜藏【弹新窗】:
  1. javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0
复制代码


43、QQ云书签:
  1. javascript:{window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0
复制代码


44、谷歌翻译:【选中文本可只翻译文本内容】


  1. javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){window.open('http://translate.google.com/?text='+t+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e);}else{window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e);};
复制代码



欢迎卡饭的友友们也把你们收藏的贡献出来吧!!!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多