日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

网页解除右键限制

發布時間:2024/1/18 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 网页解除右键限制 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
源碼來自網絡

A、壓縮版源碼(eval方式加密主體函數<eval開始是加密內容>,不能全部加密,因為谷歌標簽不允許 eval 開頭的路徑)

javascript:(function(){eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[2-9a-hj-l]'};c=1};while(c--)if(k[c])p=p.replace(newRegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 2=6;5 3=2.body;3.7=3.d=3.e=3.9=3.8=3.onmousemove=3.7=3.ondragstart=2.7=2.d=2.e=2.9=2.8=4;2.7=2.8=2.a=2.9=function(){return true};f(6.g||6){h=4;a=4;8=4}5 b=6.getElementsByTagName(\'*\');for(5 i=b.length-1;i>=0;i--){5 c=b[i];f(c.g||c){h=4;a=4}}alert(unescape(\'%u5DF2%u89E3%u9664%u590D%j%u4E0E%u53F3%u952E%u9650%j%uFF01\')+\'\\nPower By Fantacy.\');3.k.webkitUserSelect=\'auto!l\';3.k.MozUserSelect=\'text!l\';',[],22,'||doc|bd|null|var|document|onselectstart|oncontextmenu|onkeydown|onmousedown|arAllElements|elmOne|oncopy|onpaste|with|wrappedJSObject|onmouseup||u5236|style|important'.split('|'),0,{}))})()

B、未壓縮源碼(alert內容中中文做了unicode轉碼)

javascript: (function() {var doc = document;var bd = 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() {return true};with(document.wrappedJSObject || document) {onmouseup = null;onmousedown = null;oncontextmenu = null}var arAllElements = document.getElementsByTagName('*');for (var i = arAllElements.length - 1; i >= 0; i--) {var elmOne = arAllElements[i];with(elmOne.wrappedJSObject || elmOne) {onmouseup = null;onmousedown = null}}alert(unescape('%u5DF2%u89E3%u9664%u590D%u5236%u4E0E%u53F3%u952E%u9650%u5236%uFF01') + '\nPower By Fantacy.');bd.style.webkitUserSelect = 'auto!important';bd.style.MozUserSelect = 'text!important'; })()

C、使用方式(Chrome為例):

  • 添加書簽:打開任意網頁(或直接當前頁面),點擊地址欄右邊的添加書簽的星星圖標;

  • 粘貼代碼:名稱任意寫(比如:解除右鍵復制),地址就粘貼 A的代碼;

  • 解除限制:打開右鍵有限制的網頁,點擊書簽 [解除右鍵復制],此時會有彈窗提示“右鍵已經解除限制……”;

  • 復制內容:重新復制文本內容,已經可以正常復制了。(每個受限制頁面都要點擊 這個書簽)

  • 總結

    以上是生活随笔為你收集整理的网页解除右键限制的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。