od.js

Turn on old driver mode for HacgGodTurn

Від 10.10.2016. Дивіться остання версія.

Цей скрипт не слід встановлювати безпосередньо. Це - бібліотека для інших скриптів для включення в мета директиву // @require https://update.sleazyfork.org/scripts/23522/151665/odjs.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

function processTxt(e){var t=e.innerHTML;t=t.replace(/\s?本站不提供下载\s?/i,"");t=t.replace(/\s?保护作者版权\s?/i,"");if(regObj.btih.test(t)){var r=t.match(regObj.btih);for(j=0;j<r.length;j++)linkArr.btih=hashFunc(r[j])[3]+'<a href="magnet:?xt=urn:btih:'+hashFunc(r[j])[2]+'" >磁链 </a>',linkArr.btih+=' →<a href="http://www.torrent.org.cn/Home/torrent/download.html?hash='+hashFunc(r[j])[2]+'" target="_blank" title="需要先注册登陆">【种子】</a>',linkArr.btih+=' <a href="https://btso.pw/magnet/detail/hash/'+hashFunc(r[j])[2]+'" target="_blank" title="支持Base32,可查看种子内容,需要验证码,长期Invalid CAPTCHA token">【详情】</a>',t=t.replace(r[j],linkArr.btih)}t=t.replace(regObj.bdshare,linkArr.baidu),t=t.replace(regObj.yunpan, linkArr.yunpan),t=t.replace(regObj.howfile,linkArr.howf),t=t.replace(regObj.tcn,linkArr.tcn),t=t.replace(regObj.yyw,linkArr.yyw),t=t.replace(regObj.mega,linkArr.mega),t=t.replace(regObj.pixiv,linkArr.pixiv);if(e.innerHTML!=t)e.innerHTML=t;}function extCode(e){return text=e.textContent.trim(),simpleRule.test(text)?text.match(simpleRule)[1]:codeRule.test(text)?text.match(codeRule)[1]:""}function seriousReplace(e){var t=document.getElementsByClassName(e);for(var r in t)t[r]&&t[r].innerHTML&&(t[r].innerHTML=t[r].innerHTML.replace(/(?<=\s|\>|^|:)(\w{7,8})\b(?:\s(?:<br>|密码:|密码:|pw:|提取码:)?\s*([a-z0-9A-Z]{4}\b|[^\s\<]+?\s?(?=\<|$)))/g,linkArr.baidu).replace(regObj.yyw,linkArr.yyw).replace(regObj.tcn,linkArr.tcn))}function hashFunc(e){return hashWord=e.match(/^\W*/g)[0],e=e.replace(/[\s\W]*/g,"").toUpperCase(),hashStart=e.slice(0,2),hashEnd=e.slice(-2),[hashStart,hashEnd,e,hashWord]}var simpleRule=/(?:提取|访问)[码碼]?\s*[:: ]?\s*([a-z\d]{4})/i,codeRule=/(?:(?:提取|访问[码碼]|密[码碼]|艾|Extracted-code)[码碼]?)\s*[:: ]?\s*([a-z\d]{4}|[^\s,,::]{2,4})(\s|\b|$)/i,regObj={btih:/(?:[^\/=\|\"\:]|^|(?<!href\s?=\s?\"\s?)magnet:\?xt=urn:btih:)(?<!md5[:\:]\s?)\b([a-f0-9]{40}|[a-z0-9]{32})\b/gi,bdshare:/(?<=\s|\>|^|\*|\:)(?:b?\/?s\/|.*度.*[::]|(?<!href\s?=\s?\"\s?)(?:https?:\/\/)?\s?p\s?a\s?n\s?\.\s?b\s?a\s?i\s?d\s?u\s?\.\s?c\s?o\s?m\s?\/\s?s\s?\/\s?)(\w{7,8})\b(?:\s?(?:.*?[::]\s?)?([a-zA-Z0-9]{4}\b|\w{1,4}(?=\s|\<|\,|\,|$)))?/g,howfile:/@?(?:HF|howfile)\/file\/(\w{4,10})\/(\w{8,})\/?/gi,tcn:/\bt\/(\w{7})/g,yyw:/(\/lb\/)?(5lb[a-zA-Z0-9]{8,12})/g,mega:/(?:\.co)?(\.nz\/(#[\w!-]{22,}))/g,yunpan:/(?<!a\s?href\s?=\s?\"\s?)((?:https:\/\/)?yunpan.cn\/([a-zA-Z0-9]+))/g,pixiv:/封面id=(\d+)/gi},linkArr=[];linkArr.btih="",linkArr.baidu="<a href='http://pan.baidu.com/s/$1#$2' target='_blank'>度娘:$1</a> $2",linkArr.yunpan="<a href='$1' target='_blank'>云盘:$2</a>",linkArr.howf="<a href='http://howfile.com/file/$1/$2/' target='_blank'>好盘:howfile.com/file/$1/$2</a>",linkArr.tcn="<a href='http://t.cn/$1' target='_blank'>短链:t.cn/$1</a>",linkArr.yyw="<a href='http://115.com/lb/$2' target='_blank'>115礼包:$2</a> ",linkArr.mega="<a href='https://mega.co$1' target='_blank'>MEGA网盘:$2</a>",linkArr.pixiv="<a href='http://www.pixiv.net/member_illust.php?mode=medium&illust_id=$1' target='_blank'>封面pixiv原图</a>";var nod=document.createElement("style"),str=".oD_box{position:fixed;top:60px;right:0px;width:40px;transition: all 0.5s ease;white-space:nowrap;z-index:9998} .oD_box:hover{width:210px}";nod.type="text/css",nod.styleSheet?nod.styleSheet.cssText=str:nod.innerHTML=str;function addInsertHandler(e){var t=!1;document.addEventListener("DOMNodeInserted",function(){if("complete"==document.readyState&&!t){t=!0;var r=0,n=setInterval(function(){1==r?st2https(!1,e):8==r&&(t=!1,clearInterval(n)),r++},500)}}),st2https(!0,e)}function st2https(e,t){for(var r=e?t[0]:["a","img"],n=0,o=r.length;o>n;n++)for(var a=r[n],c=document.querySelectorAll(a),d=0,s=c.length;s>d;d++){for(var u=0,l=t[1].length;l>u;u++){var i=new RegExp(t[1][u][0],"gi");c[d].parentNode&&i.test(c[d].outerHTML)&&(c[d].outerHTML=c[d].outerHTML.replace(i,t[1][u][1]))}}}var rocketStr='<div id="rocketContent" style="display: none;"><div style="height:100%; width:100%; position:fixed; _position:absolute; top:0; z-index:9999; opacity:0.3; filter: alpha(opacity=30); background-color:#000"></div><div style="width:300px;height:300px;position:fixed;left:50%;top:50%;margin-top:-150px;margin-left:-150px;z-index:100000;background-color:#ffffff;border:3px solid #afb3b6;border-radius:10px;opacity:0.95;filter:alpha(opacity=95);"><div id="rocketLinks" style="position:absolute;left:20px;top:20px;height:260px;width:260px;overflow:auto;word-wrap:break-word;"></div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAA5FBMVEUAAAD+/v7////9/f7////////+/v7+/v7////+/v7+/v7////+/v7+/v7////+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7////////////+/v7+/v7+/v7+/v7+/v4uje3///82ke7s9P3N5PtQoPDI4fqCu/Tu9v5Im+/6/P+VxfZgqPFNnvDp8/3f7fq42Pmnz/d1tPNvsfNkq/JCmO/4+/7X6fz19/rn8PqYx/aNwfV8uPRqrvJZpfFUovAzkO3Q5vu92/mr0fieyva92fWx0vQ6lO5pygFTAAAAJHRSTlMAmfD+RMGwgj2mknlIKR/36+XGnIyHfnJfVDk2My8S4E1CJBvTatKDAAABY0lEQVQoz4WSZ1fCMBRA05ahLPfemkspBUFwgGz3+P//x/hK6ZBzvB/ak96+kZeoGCtFK5eziitqCSfWOnM2CuWUrOyQYPc0bjM2htHXh+/ffQ4lQ6zEPoZ6TwdUp10M56EtAe5MR7y0HGAeX7Ghe6MTzIZwFtTfBrepUzw4UFSGY8CUTTMGLo3eglv58By21pRnB7aNBqTwPfWq/OVey9sH22wZXiWo6Yr3GtRl/f0IRyoPYy14v97YWjVY12BPrcK9XvhaZPUdWCoLbR35yOoW5P7R8eQ3JrmbSp6HVmSrXuTrmNYyUAs2JkL6D6YjG1PgNGXK87F4nWAsUxmL2gyH6oVD7cuhdqFg9CE4T/oPE6CsgvBOP21715AP7ugaDFK+3YD1KyUcAG47bn0TSylxFd8WDTwMMByoBSUHw+jd9/3JbQODnVExygUS7FRUksPVtdDZW8dqCZm8lc1auxcq4gc02GVGTUchmgAAAABJRU5ErkJggg==" id="rocketQuit" style="position:absolute;right:0px;top:0px;cursor: pointer;"/></div></div>';