1.打印页面的所有脚本引用文件及代码段:

javascript:var scriptarray=document.getElementsByTagName("script");for(scriptindex in scriptarray){console.log(scriptarray[scriptindex])};

 

 

2.解除页面不能选择、拷贝文字:

javascript:document.getElementsByTagName("body")[0].onselectstart=function(){};document.getElementsByTagName("body")[0].oncontextmenu=function(){};

 

 

3.显示页面元素的事件处理函数:

javascript:(function()%20{var%20protocol%20=%20window.location.protocol%20===%20'file:'%20?'http:'%20:%20'';var%20url%20=%20protocol+'//www.sprymedia.co.uk/VisualEvent/VisualEvent_Loader.js';if(%20typeof%20VisualEvent!='undefined'%20)%20{if%20(%20VisualEvent.instance%20!==%20null%20)%20{VisualEvent.close();}else%20{new%20VisualEvent();}}else%20{var%20n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src',url+'?rand='+new%20Date().getTime());document.body.appendChild(n);}})();

 

后面,会继续添加更多有用的,常用的小脚本

 

posted on 2018-12-21 09:04  踏歌&而行  阅读(1938)  评论(0编辑  收藏  举报