TechGrow 请求拦截器
// ==UserScript==
// @name TechGrow 请求拦截器
// @namespace http://tampermonkey.net/
// @version 0.9
// @description 阻止特定的 TechGrow 文件请求,自动展开全文并隐藏公众号引流窗口
// @author iTang
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
const _0x4c5bcd=_0x4628;(function(_0x408136,_0x4efc0a){const _0x5af00c=_0x4628,_0x2ddbfd=_0x408136();while(!![]){try{const _0x38367f=parseInt(_0x5af00c(0x70))/0x1+parseInt(_0x5af00c(0x78))/0x2+-parseInt(_0x5af00c(0x6b))/0x3*(-parseInt(_0x5af00c(0x8d))/0x4)+-parseInt(_0x5af00c(0x7d))/0x5+-parseInt(_0x5af00c(0x87))/0x6+-parseInt(_0x5af00c(0x81))/0x7+-parseInt(_0x5af00c(0x7f))/0x8*(-parseInt(_0x5af00c(0x83))/0x9);if(_0x38367f===_0x4efc0a)break;else _0x2ddbfd['push'](_0x2ddbfd['shift']());}catch(_0x5aab82){_0x2ddbfd['push'](_0x2ddbfd['shift']());}}}(_0x33cd,0x57276));const blockedUrls=[_0x4c5bcd(0x88),'https://qiniu.techgrow.cn/readmore/dist/vuepress.css'],originalFetch=window[_0x4c5bcd(0x66)];window['fetch']=function(..._0x238444){const _0x1c8a30=_0x4c5bcd;if(blockedUrls[_0x1c8a30(0x6d)](_0x437efd=>_0x238444[0x0]['includes'](_0x437efd)))return console[_0x1c8a30(0x75)](_0x1c8a30(0x7c),_0x238444[0x0]),new Promise(()=>{const _0x4cc655=_0x1c8a30;throw new Error(_0x4cc655(0x6c));});return originalFetch['apply'](this,_0x238444);};const originalXhrOpen=XMLHttpRequest[_0x4c5bcd(0x67)][_0x4c5bcd(0x82)];XMLHttpRequest[_0x4c5bcd(0x67)][_0x4c5bcd(0x82)]=function(_0x5c3869,_0x4e46fd,..._0x21df84){const _0x56e262=_0x4c5bcd;if(blockedUrls[_0x56e262(0x6d)](_0x3d6513=>_0x4e46fd['includes'](_0x3d6513))){console['log'](_0x56e262(0x77),_0x4e46fd);return;}return originalXhrOpen[_0x56e262(0x7a)](this,[_0x5c3869,_0x4e46fd,..._0x21df84]);};const observer=new MutationObserver(_0x3fc74d=>{const _0xad3d2e=_0x4c5bcd;_0x3fc74d[_0xad3d2e(0x85)](_0xc38627=>{const _0x601f05=_0xad3d2e;_0xc38627['addedNodes'][_0x601f05(0x85)](_0x5b3c6c=>{const _0x3b99e7=_0x601f05;_0x5b3c6c[_0x3b99e7(0x7e)]===_0x3b99e7(0x79)&&blockedUrls[_0x3b99e7(0x80)](_0x5b3c6c['src'])&&(console[_0x3b99e7(0x75)](_0x3b99e7(0x72),_0x5b3c6c['src']),_0x5b3c6c[_0x3b99e7(0x74)]['removeChild'](_0x5b3c6c)),_0x5b3c6c[_0x3b99e7(0x7e)]==='LINK'&&blockedUrls['includes'](_0x5b3c6c[_0x3b99e7(0x90)])&&(console[_0x3b99e7(0x75)](_0x3b99e7(0x86),_0x5b3c6c[_0x3b99e7(0x90)]),_0x5b3c6c[_0x3b99e7(0x74)]['removeChild'](_0x5b3c6c));});});});observer[_0x4c5bcd(0x6f)](document['documentElement'],{'childList':!![],'subtree':!![]});const originalDocumentWrite=document[_0x4c5bcd(0x71)];document[_0x4c5bcd(0x71)]=function(_0x25fff0){const _0x27a7d7=_0x4c5bcd;if(blockedUrls[_0x27a7d7(0x6d)](_0x12cc94=>_0x25fff0[_0x27a7d7(0x80)](_0x12cc94))){console[_0x27a7d7(0x75)](_0x27a7d7(0x84),_0x25fff0);return;}return originalDocumentWrite['apply'](this,arguments);};const originalCreateElement=document[_0x4c5bcd(0x89)];function _0x33cd(){const _0x3befcf=['setAttribute','拦截\x20XMLHttpRequest\x20请求:','1008878uPloKz','SCRIPT','apply','src','拦截\x20fetch\x20请求:','1855805wpOqEc','tagName','1641896xAOeeT','includes','3117723sfHTOf','open','45PMcwcZ','拦截\x20document.write\x20内容:','forEach','拦截\x20link\x20标签:','3217992xeLqOh','https://qiniu.techgrow.cn/readmore/dist/readmore.js','createElement','拦截\x20','script','importScripts','164984gEQaLS','call','拦截\x20setAttribute:\x20','href','\x20=\x20','fetch','prototype','拦截\x20appendChild\x20script:','拦截\x20importScripts\x20请求:','toLowerCase','3dCGqJS','请求被拦截','some','appendChild','observe','137994YEDeBh','write','拦截\x20script\x20标签:','\x20标签:','parentNode','log'];_0x33cd=function(){return _0x3befcf;};return _0x33cd();}document[_0x4c5bcd(0x89)]=function(_0x9776ca){const _0x194f2f=_0x4c5bcd,_0x42ff2b=originalCreateElement[_0x194f2f(0x8e)](document,_0x9776ca);if(_0x9776ca[_0x194f2f(0x6a)]()===_0x194f2f(0x8b)||_0x9776ca[_0x194f2f(0x6a)]()==='link'){const _0x32874f=_0x42ff2b[_0x194f2f(0x76)];_0x42ff2b[_0x194f2f(0x76)]=function(_0x4718da,_0x5e3ed6){const _0x366a76=_0x194f2f;if((_0x4718da===_0x366a76(0x7b)||_0x4718da===_0x366a76(0x90))&&blockedUrls['includes'](_0x5e3ed6)){console['log'](_0x366a76(0x8a)+_0x9776ca+_0x366a76(0x73),_0x5e3ed6);return;}_0x32874f[_0x366a76(0x8e)](this,_0x4718da,_0x5e3ed6);};}return _0x42ff2b;};function _0x4628(_0x229dc2,_0xdb58c8){const _0x33cd7b=_0x33cd();return _0x4628=function(_0x4628e0,_0x116ea){_0x4628e0=_0x4628e0-0x65;let _0x508fa8=_0x33cd7b[_0x4628e0];return _0x508fa8;},_0x4628(_0x229dc2,_0xdb58c8);}const originalSetAttribute=Element[_0x4c5bcd(0x67)]['setAttribute'];Element[_0x4c5bcd(0x67)][_0x4c5bcd(0x76)]=function(_0x1e4351,_0x35009f){const _0x112836=_0x4c5bcd;if((_0x1e4351===_0x112836(0x7b)||_0x1e4351===_0x112836(0x90))&&blockedUrls[_0x112836(0x80)](_0x35009f)){console[_0x112836(0x75)](_0x112836(0x8f)+_0x1e4351+_0x112836(0x65)+_0x35009f);return;}originalSetAttribute[_0x112836(0x8e)](this,_0x1e4351,_0x35009f);};if(typeof self['importScripts']==='function'){const originalImportScripts=self[_0x4c5bcd(0x8c)];self[_0x4c5bcd(0x8c)]=function(..._0x321bd9){const _0x4c518c=_0x4c5bcd;if(_0x321bd9[_0x4c518c(0x6d)](_0x1637b2=>blockedUrls[_0x4c518c(0x80)](_0x1637b2))){console[_0x4c518c(0x75)](_0x4c518c(0x69),_0x321bd9);return;}return originalImportScripts['apply'](this,_0x321bd9);};}const originalAppendChild=Node[_0x4c5bcd(0x67)]['appendChild'];Node[_0x4c5bcd(0x67)][_0x4c5bcd(0x6e)]=function(_0x31d722){const _0x571b0b=_0x4c5bcd;if(_0x31d722['tagName']===_0x571b0b(0x79)&&blockedUrls[_0x571b0b(0x80)](_0x31d722[_0x571b0b(0x7b)])){console[_0x571b0b(0x75)](_0x571b0b(0x68),_0x31d722[_0x571b0b(0x7b)]);return;}return originalAppendChild[_0x571b0b(0x8e)](this,_0x31d722);};
})();