JavaScript
adsbypasser.full
JavaScript
adsbypasser.lite
1 // ==UserScript== 2 // @name AdsBypasser 3 // @namespace AdsBypasser 4 // @description Bypass Ads 5 // @copyright 2012+, Wei-Cheng Pan, https://adsbypasser.github.io/ 6 // @version 7.29.0 7 // @license BSD 8 // @homepageURL https://adsbypasser.github.io/ 9 // @supportURL https://github.com/adsbypasser/adsbypasser/issues 10 // @updateURL https://adsbypasser.github.io/releases/adsbypasser.full.es7.meta.js 11 // @downloadURL https://adsbypasser.github.io/releases/adsbypasser.full.es7.user.js 12 // @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v7.29.0/resources/img/logo.png 13 // @grant GM_deleteValue 14 // @grant GM_getResourceURL 15 // @grant GM_getValue 16 // @grant GM_info 17 // @grant GM_openInTab 18 // @grant GM_registerMenuCommand 19 // @grant GM_setValue 20 // @grant GM_xmlhttpRequest 21 // @grant GM.deleteValue 22 // @grant GM.getResourceUrl 23 // @grant GM.getValue 24 // @grant GM.info 25 // @grant GM.openInTab 26 // @grant GM.setValue 27 // @grant GM.xmlHttpRequest 28 // @grant unsafeWindow 29 // @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v7.29.0/resources/css/align_center.css 30 // @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v7.29.0/resources/css/scale_image.css 31 // @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v7.29.0/resources/img/imagedoc-darknoise.png 32 // @noframes 33 // @run-at document-start 34 // @include http://* 35 // @include https://* 36 // @connect * 37 // ==/UserScript== 38 39 (()=>{var __webpack_modules__=[,(e,t,r)=>{r.r(t),r.d(t,{AdsBypasserError:()=>a,every:()=>o,find:()=>s,forEach:()=>n,isString:()=>u,map:()=>i,none:()=>_,nop:()=>p,partial:()=>l,tryEvery:()=>m,wait:()=>d});class a extends Error{constructor(e){super(e)}get name(){return"AdsBypasserError"}}function n(e,t){return c(e)?Array.prototype.forEach.call(e,t):Object.keys(e).forEach((r=>t(e[r],r,e)))}function o(e,t){return c(e)?Array.prototype.every.call(e,t):Object.keys(e).every((r=>t(e[r],r,e)))}function i(e,t){if(c(e))return Array.prototype.map.call(e,t);const r=Object.assign({},e);return Object.getOwnPropertyNames(r).forEach((a=>{r[a]=t(e[a],a,e)})),r}function s(e,t){for(const[r,a]of function*(e){if(c(e))return void(yield*Array.prototype.entries.call(e));const t=Object.getOwnPropertyNames(e);for(const r of t)yield[r,e[r]]}(e)){const n=t(a,r,e);if(n!==_)return[r,a,n]}return[_,_,_]}function c(e){return Array.isArray(e)||function(e){return"NodeList"===e.constructor.name}(e)}function l(e,...t){if("function"!=typeof e)throw new a("must give a function");return(...r)=>e(...t.concat(r))}function u(e){return"string"==typeof e||e instanceof String}function p(){}const _=p;function d(e){return new Promise((t=>{setTimeout(t,e)}))}function m(e,t){return new Promise((r=>{const a=setInterval((function(){const e=t();e!==_&&(clearInterval(a),r(e))}),e)}))}},(e,t,r)=>{r.r(t),r.d(t,{findHandler:()=>s,register:()=>o});var a=r(1);const n=[];function o(e){n.push(e)}function i(e,t,r,n){return Array.isArray(e)?function(e,t,r,n){const[,,o]=(0,a.find)(e,(e=>i(e,t,r,n)||a.none));return o!==a.none?o:null}(e,t,r,n):"function"==typeof e?function(e,t,r,a){return e(t,r,a)}(e,t,r,n):e instanceof RegExp?function(e,t){return t.match(e)}(e,t):(0,a.isString)(e)?function(e,t){let r=/\*|https?|file|ftp|chrome-extension/,a=/\*|(\*\.)?([^/*]+)/,n=/\/.*/,o=`^(${r.source})://(${a.source})?(${n.source})$`,i=new RegExp(o);const s=e.match(i);if(!s)return null;r=s[1],a=s[2];const c=s[3],l=s[4];if(n=s[5],"*"===r&&!/https?/.test(t.scheme))return null;if(r!==t.scheme)return null;if("file"!==r&&"*"!==a)if(c){if(i=t.host.indexOf(l),i<0||i+l.length!==t.host.length)return null}else if(a!==t.host)return null;return o=n.replace(/[*.[\]?+#]/g,(e=>"*"===e?".*":"\\"+e)),n=new RegExp(`^${o}$`),n.test(t.path)?t:null}(e,r):function(e,t){const r=(0,a.map)(e,((e,r)=>{if(e instanceof RegExp)return t[r].match(e);if(Array.isArray(e)){const[,,n]=(0,a.find)(e,(e=>t[r].match(e)||a.none));return n!==a.none?n:null}throw new a.AdsBypasserError("invalid rule")}));return(0,a.every)(r,(e=>!!e))?r:null}(e,n)}function s(){const e=window.location.toString(),t={scheme:window.location.protocol.slice(0,-1),host:window.location.host,path:window.location.pathname+window.location.search+window.location.hash},r={scheme:window.location.protocol,host:window.location.hostname,port:window.location.port,path:window.location.pathname,query:window.location.search,hash:window.location.hash},[o,s,c]=(0,a.find)(n,(n=>{const o=i(n.rule,e,t,r);return o||a.none}));return o===a.none?null:s.start||s.ready?{start:s.start?(0,a.partial)(s.start,c):a.nop,ready:s.ready?(0,a.partial)(s.ready,c):a.nop}:null}},(e,t,r)=>{r.r(t),r.d(t,{GMAPI:()=>i,rawUSW:()=>n,usw:()=>o});var a=r(1);const n=function(){let e=null;try{e=unsafeWindow}catch(t){try{e=(0,eval)("this").global}catch(e){}}return e||(0,eval)("this").window}(),o=function(){if("Greasemonkey"!==("object"==typeof GM_info&&GM_info?GM_info:"object"==typeof GM&&GM&&GM.info?GM.info:{}).scriptHandler)return n;const e={set:(e,t,r)=>t!==s&&(e[t]=c(r),!0),get(t,r){if(r===s)return t;const a=t[r],n=typeof a;return null===a||"function"!==n&&"object"!==n?a:new Proxy(a,e)},apply(e,t,r){r=Array.prototype.slice.call(r),e===unsafeWindow.Object.defineProperty&&(r[0]=r[0][s]),e===unsafeWindow.Function.apply&&(t=t[s],r[1]=Array.prototype.slice.call(r[1])),e===unsafeWindow.document.querySelector&&(t=t[s]),e===unsafeWindow.document.write&&(t=t[s]);const a=c(r);return e.apply(t,a)},construct(e,t){(t=Array.prototype.slice.call(t)).unshift(void 0);const r=c(t);return new(unsafeWindow.Function.prototype.bind.apply(e,r))}};return new Proxy(unsafeWindow,e)}(),i=function(){if(n.global)return null;const e={};"function"==typeof GM_openInTab?e.openInTab=GM_openInTab:e.openInTab=GM.openInTab;"function"==typeof GM_getValue?e.getValue=(e,t)=>Promise.resolve(GM_getValue(e,t)):e.getValue=GM.getValue;"function"==typeof GM_setValue?e.setValue=(e,t)=>Promise.resolve(GM_setValue(e,t)):e.setValue=GM.setValue;"function"==typeof GM_deleteValue?e.deleteValue=e=>Promise.resolve(GM_deleteValue(e)):e.deleteValue=GM.deleteValue;"function"==typeof GM_xmlhttpRequest?e.xmlHttpRequest=GM_xmlhttpRequest:e.xmlHttpRequest=GM.xmlHttpRequest;"function"==typeof GM_registerMenuCommand?e.registerMenuCommand=GM_registerMenuCommand:e.registerMenuCommand=a.nop;"function"==typeof GM_getResourceURL?e.getResourceUrl=e=>Promise.resolve(GM_getResourceURL(e)):"object"==typeof GM&&GM&&GM.getResourceUrl&&(e.getResourceUrl=GM.getResourceUrl);return e}();const s="__adsbypasser_reverse_proxy__";function c(e){if(null===e||!(e instanceof Object))return e;if(e===unsafeWindow)return e;if(e instanceof String)return e.toString();if(e instanceof Function)return exportFunction(e,unsafeWindow,{allowCrossOriginArguments:!0});if(e instanceof Array){const t=new unsafeWindow.Array;for(let r=0;r<e.length;++r)t.push(c(e[r]));return t}const t=new unsafeWindow.Object;return(0,a.forEach)(e,((e,r)=>{t[r]=c(e)})),t}},(e,t,r)=>{r.r(t),r.d(t,{dumpConfig:()=>_,loadConfig:()=>p});var a=r(1),n=r(2),o=r(3);const i=[{key:"version",default_:0,verify:e=>"number"==typeof e&&e>=0,normalize:u},{key:"align_center",default_:!0,verify:c,normalize:l},{key:"change_background",default_:!0,verify:c,normalize:l},{key:"redirect_image",default_:!0,verify:c,normalize:l},{key:"scale_image",default_:!0,verify:c,normalize:l},{key:"log_level",default_:1,verify:e=>"number"==typeof e&&e>=0&&e<=2,normalize:u}],s=[async()=>{const e=await o.GMAPI.getValue("align_center"),t=await o.GMAPI.getValue("change_background"),r=await o.GMAPI.getValue("scale_image"),a=await o.GMAPI.getValue("redirect_image"),n="boolean"==typeof e;"boolean"!=typeof t&&await o.GMAPI.setValue("change_background",!n||e),"boolean"!=typeof r&&await o.GMAPI.setValue("scale_image",!n||e),n||await o.GMAPI.setValue("align_center",!0),"boolean"!=typeof a&&await o.GMAPI.setValue("redirect_image",!0)},async()=>{"boolean"!=typeof await o.GMAPI.getValue("external_server_support")&&await o.GMAPI.setValue("external_server_support",!1)},async()=>{"number"!=typeof await o.GMAPI.getValue("log_level")&&await o.GMAPI.setValue("log_level",1)},async()=>{await o.GMAPI.deleteValue("external_server_support")}];function c(e){return"boolean"==typeof e}function l(e){return!!e}function u(e){return parseInt(e,10)}async function p(){await async function(){let e=i.map((async e=>{const t=await o.GMAPI.getValue(e.key);return e.verify(t)}));e=await Promise.all(e),(0,a.every)(e,(e=>e))||await o.GMAPI.setValue("version",0)}(),await async function(){let e=await o.GMAPI.getValue("version");if(0!==e&&!e)throw new a.AdsBypasserError("invalid version");for(;e<s.length;)s[e](),++e;await o.GMAPI.setValue("version",e)}(),(0,n.register)({rule:{host:/^adsbypasser\.github\.io$/,path:/^\/configure\.html$/},async ready(){await new Promise((e=>{const t=setInterval((()=>{o.usw.render&&(clearInterval(t),e())}),50)})),o.usw.commit=async e=>{for(const[t,r]of Object.entries(e))await o.GMAPI.setValue(t,r)},o.usw.render({version:await o.GMAPI.getValue("version"),options:{align_center:{type:"checkbox",value:await o.GMAPI.getValue("align_center"),label:"Align Center",help:"Align image to the center if possible. (default: enabled)"},change_background:{type:"checkbox",value:await o.GMAPI.getValue("change_background"),label:"Change Background",help:"Use Firefox-like image background if possible. (default: enabled)"},redirect_image:{type:"checkbox",value:await o.GMAPI.getValue("redirect_image"),label:"Redirect Image",help:["Directly open image link if possible. (default: enabled)","If disabled, redirection will only works on link shortener sites."].join("<br/>\n")},scale_image:{type:"checkbox",value:await o.GMAPI.getValue("scale_image"),label:"Scale Image",help:"When image loaded, scale it to fit window if possible. (default: enabled)"},log_level:{type:"select",value:await o.GMAPI.getValue("log_level"),menu:[[0,"0 (quiet)"],[1,"1 (default)"],[2,"2 (verbose)"]],label:"Log Level",help:["Log level in developer console. (default: 1)","0 will not print anything in console.","1 will only print logs on affected sites.","2 will print on any sites."].join("<br/>\n")}}})}})}async function _(){let e=i.map((async e=>[e.key,await o.GMAPI.getValue(e.key)]));e=await Promise.all(e);const t={};for(const[r,a]of e)t[r]=a;return t}},(e,t,r)=>{r.r(t),r.d(t,{debug:()=>i,info:()=>s,warn:()=>c});var a=r(1);const n=!1;function o(e,t){if(n)return;t=Array.prototype.slice.call(t),(0,a.isString)(t[0])?t[0]="AdsBypasser: "+t[0]:t.unshift("AdsBypasser:");const r=console[e];"function"==typeof r&&r.apply(console,t)}function i(){o("debug",arguments)}function s(){o("info",arguments)}function c(){o("warn",arguments)}},(e,t,r)=>{r.r(t);var a=r(7);a._.register({rule:{host:/^ak\.sv$/},async ready(){await a._.wait(1e3);(0,a.$)("html").click(),await a._.wait(6e3);const e=(0,a.$)('a[class="download_button"]');await a.$.openLink(e)}}),a._.register({rule:{host:/^(www\.)?apunkasoftware\.net$/},async ready(){const e=(0,a.$)("div#proceed-now > a#dlink");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^thefileslocker\.net$/},async ready(){(0,a.$)("#downloadbtn").click()}}),a._.register({rule:{host:[/^(www\.)?indishare\.org$/,/^uploadrar\.com$/]},async ready(){const e=(0,a.$)("button#downloadbtn.downloadbtn");e.removeAttribute("disabled"),e.click()}}),a._.register({rule:{host:/^infidrive\.net$/},async ready(){await a._.wait(4e4);(0,a.$)("button.inline-flex:nth-child(2)").click()}}),a._.register({rule:{host:/^k2s\.cc$/},async ready(){await a._.wait(35e3);const e=(0,a.$)("a.link-to-file");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^katfile\.com$/},async ready(){const e=(0,a.$)('a[id="dlink"]');await a.$.openLink(e.href)}}),a._.register({rule:{host:/^(www\.)?keeplinks\.org$/},async ready(){(0,a.$)('[id="btnproceedsubmit"]').click()}}),a._.register({rule:"https://www.mirrored.to/files/*",async ready(){const e=(0,a.$)(".col-sm.centered.extra-top a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^multiup\.io$/},async ready(){(0,a.$)(".btn-info.btn-lg.btn-block").click()}}),a._.register({rule:{host:/^www\.onlinefreecourse\.net$/},async ready(){const e=(0,a.$)('a[class="btn btn-success"]');await a.$.openLink(e)}}),a._.register({rule:{host:/^sfile\.mobi$/},async ready(){await a._.wait(8e3);(0,a.$)("#download").click()}}),a._.register({rule:{host:/^uploadhaven\.com$/,path:/^\/download\//},async ready(){await a._.wait(18e3);(0,a.$)(".btn-submit-free.btn-download-free").click()}}),a._.register({rule:{host:/^usersdrive\.com$/},async ready(){const e=(0,a.$)(".btn-download");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^1ink\.cc$/},async ready(){const e=(0,a.$)("#countingbtn");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^1link\.club$/},async ready(){const e=(0,a.$)("#download.btn");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^1v\.to$/,path:/^\/t\/[a-zA-Z0-9/=]+/},async start(){const e=window.location.href.replace("/t/","/saliendo/");await a.$.openLink(e)}}),a._.register({rule:{host:/^a2zapk\.io$/},async ready(){const e=(0,a.$)("#dlbtn li a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^adfoc\.us$/},async ready(){const e=(0,a.$)(".skip");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^adshnk\.com$/},async ready(){await a._.wait(16e3);(0,a.$)('button[class="ui right labeled icon button primary huge fluid"]').click(),await a._.wait(18e3);const e=(0,a.$)('a[id="final_redirect"]');await a.$.openLink(e.href)}}),a._.register({rule:{host:/^www\.adz7short\.space$/},async ready(){const e=(0,a.$)("#continue");await a._.wait(1e4),e.click()}}),a._.register({rule:{host:/^bcvc\.ink$/},async ready(){await a._.wait(5e3);(0,a.$)("#getLink").click()}}),a._.register({rule:{host:/^(www\.)?biglistofwebsites\.com$/,path:/^\/go\/(\w+\.\w+)$/},async start(e){await a.$.openLink("http://"+e.path[1])}}),a._.register({rule:[{host:/^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,path:/\/o\/([a-zA-Z0-9]+)/}],async start(e){const t=window.atob(e.path[1]);await a.$.openLink(t)}}),a._.register({rule:{host:/^bioskopkeren\.boo$/},async ready(){await a._.wait(1e3);(0,a.$)(".reklamgec").click()}}),a._.register({rule:{host:/^boost\.ink$/},async start(){const e=(0,a.$)("body").getAttribute("result");e&&await a.$.openLink(atob(e))}}),a._.register({rule:{host:/^cocoleech\.com$/},async ready(){const e=(0,a.$)(".btn.btn-block.btn-success");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^cpmlink\.net$/},async ready(){const e=(0,a.$)("#btn-main");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^ctr\.sh$/},async ready(){await a._.wait(12e3);(0,a.$)(".btn.btn-primary.btn-captcha").click()}}),a._.register({rule:{host:/^cutpaid\.com$/},async ready(){let e=(0,a.$)(".btn-primary");e&&(await a._.wait(2e4),e.click()),e=(0,a.$)(".btn-success.btn-lg.get-link"),await a._.wait(9e3),await a.$.openLink(e.href)}}),a._.register({rule:{host:/^www\.dlink3\.com$/},async ready(){await a._.wait(12e3);const e=(0,a.$)('[class="myButton"]');await a.$.openLink(e.href)}}),a._.register({rule:{host:/^dlupload\.com$/},async ready(){await a._.wait(3500);(0,a.$)(".btn-block.btn-primary.text-white.shadow.m-1.position-relative.up-tooltip-container").click(),await a._.wait(6e3);(0,a.$)(".btn-block.continue-btn-bg").click()}}),a._.register({rule:{host:/^earnlink\.io$/},async ready(){const e=a.$.searchFromScripts(/"([^"]+)"\)\.html\("Continue"\)/);await a.$.openLink(e[1])}}),a._.register({rule:{host:/^forex-trnd\.com$/},async ready(){await a._.wait(1e4);(0,a.$)(".get-link").click()}}),a._.register({rule:{host:/^exeo\.app$/},async ready(){(0,a.$)(".link-button.button").click(),await a._.wait(2e3);(0,a.$)(".link-button").click(),await a._.wait(6e3);(0,a.$)(".link-button.get-link").click()}}),a._.register({rule:{host:/^fc-lc\.(com|xyz)$/},async ready(){await a._.wait(2e3);(0,a.$)(".btn-primary.btn-captcha.mb-4").click()}}),a._.register({rule:{host:/^loaninsurehub\.com$/},async ready(){const e=(0,a.$)("#glink");e&&e.click(),await a._.wait(12e3),a.$.remove("#overlay");const t=(0,a.$)("#surl");t&&t.click()}}),a._.register({rule:{host:/^fir3\.net$/},async ready(){await a._.wait(12e3);(0,a.$)(".btn.btn-success.btn-lg.get-link").click()}}),a._.register({rule:{host:/^get-click2\.blogspot\.com$/},async ready(){const e=(0,a.$)("button#gotolink");e.removeAttribute("disabled"),await a._.wait(1),e.click()}}),a._.register({rule:{host:/^getthot\.com$/},async ready(){await a._.wait(12e3);const e=(0,a.$)(".skip-btn");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^gplinks\.co$/},async ready(){await a._.wait(8e3);(0,a.$)(".get-link").click()}}),a._.register({rule:{host:/^hen-tay\.net$/,path:/^\/go\//},async ready(){const e=(0,a.$)("#download_url div a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^hotshorturl\.com$/},async ready(){const e=(0,a.$)("frame[scrolling=yes]");await a.$.openLink(e.src)}}),a._.register({rule:{host:/^icutlink\.com$/},async ready(){await a._.wait(1e4);const e=(0,a.$)(".btn-success.btn-lg.get-link");await a.$.openLink(e)}}),a._.register({rule:{host:/^zegtrends\.com$/},async ready(){await a._.wait(12e3);(0,a.$)("div > button.bsub").click()}}),a._.register({rule:{host:/^imagetwist\.netlify\.app$/},async ready(){const e=(0,a.$)(".btn.btn-dark");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^www\.javlibrary\.com$/,query:/url=([^&]+)/},async start(e){await a.$.openLink(decodeURIComponent(e.query[1]))}}),a._.register({rule:{host:/^kimochi\.info$/,path:/^\/inter$/},async ready(){const e=(0,a.$)("a#next");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^(www\.)?kingofshrink\.com$/},async ready(){const e=(0,a.$)("#textresult > a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^linegee\.net$/},async ready(){(0,a.$)("p.kecil a").click()}}),a._.register({rule:{host:/^link\.turkdown\.com$/},async ready(){await a._.wait(5e3);const e=(0,a.$)(".btn-success.btn-lg.get-link");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^link1s\.com$/},async ready(){await a._.wait(1e4);(0,a.$)(".btn.btn-success.btn-lg.get-link").click()}}),function(){a._.register({rule:{host:[/^adsafelink\.com$/,/^birdurls\.com$/,/^dz4link\.com$/,/^(linkmoni|shrinkcash)\.com$/,/^shrt10\.com$/,/^tmearn\.net$/,/^vinaurl\.net$/,/^payskip\.org$/,/^clik\.pw$/,/^miniurl\.pw$/,/^aylink\.co$/,/^(clk|oko)\.sh$/,/^cpmlink\.pro$/,/^gitlink\.pro$/,/^megalink\.pro$/,/^met\.bz/,/^mitly\.us$/,/^oke\.io$/,/^pahe\.plus$/,/^pingit\.im$/,/^thotpacks\.xyz$/]},async ready(){const e=new t;await e.call()}});class e{constructor(){this._overlaySelector=['[class$="Overlay"]',"#__random_class_name__","#headlineatas","#myModal",".opacity_wrapper","#overlay"].join(", "),this._formSelector=["#go-link",".go-link","#originalLink.get-link",'form[action="/links/go"]'].join(", ")}removeOverlay(){a.$.remove(this._overlaySelector),a.$.block(this._overlaySelector,document.body),setInterval((()=>{document.body.style.overflow="initial"}),500)}removeFrame(){a.$.remove("iframe")}async call(){if(!await this.prepare())return;const e=await this.getMiddleware();if(!e)return void this.withoutMiddleware();const t=await this.getURL(e);await a.$.openLink(t)}}class t extends e{async prepare(){this.removeOverlay();if(!a.$.$("#captchaShortlink, div.g-recaptcha"))return!0;a._.info("recaptcha detected, stop"),a._.info("trying to listen submit button");return!!a.$.$("#invisibleCaptchaShortlink")&&void 0}async submitListen(e){new MutationObserver((()=>{e.disabled||e.click()})).observe(e,{attributes:!0})}async getMiddleware(){return await async function(e){let t=a.$.window.$;for(;!t;)await a._.wait(50),t=a.$.window.$;const r=t(e);if(r.length>0)return r;return null}(this._formSelector)}withoutMiddleware(){(0,a.$)("#link-view").submit()}async getURL(e){for(;;){await a._.wait(1e3);try{const t=await r(e);if(t)return t}catch(e){a._.warn(e)}}}}function r(e){return new Promise(((t,r)=>{e.is("a")&&e.attr("href")&&t(e.attr("href"));a.$.window.$.ajax({dataType:"json",type:"POST",url:e.attr("action"),data:e.serialize(),success:e=>{e.url?t(e.url):r(new a._.AdsBypasserError(e.message))},error:(e,t,n)=>{a._.warn(e,t,n),r(new a._.AdsBypasserError("request error"))}})}))}}(),a._.register({rule:{host:/^n\.fcd\.su$/},async ready(){const e=(0,a.$)("a.btn:nth-child(2)");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^linkpoi\.me$/},async ready(){await a._.wait(6e3);(0,a.$)(".btn.btn-primary.btn-block.redirect.get-link").click()}}),a._.register({rule:{host:/^linkshrink\.net$/,path:/^\/[a-zA-Z0-9]+$/},async start(){a.$.window._impspcabe=0},async ready(){let e=a.$.searchFromScripts(/revC\("([^"]+)"\)/);e=atob(e[1]),await a.$.openLink("/"+e)}}),a._.register({rule:{host:/^linksly\.co$/},async ready(){(0,a.$)(".btn-primary").click()}}),a._.register({rule:{host:[/^go\.linksly\.co$/,/^go\.bitcosite\.com$/]},async ready(){await a._.wait(8e3);const e=(0,a.$)(".btn-success.btn-lg.get-link");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^lnk2\.cc$/,path:/^\/go\//},async ready(){a.$.remove("iframe, .popupOverlay"),await a._.wait(18e3);(0,a.$)("#getLink").click()}}),a._.register({rule:{host:/^www\.lolinez\.com$/,query:/\?(.+)/},async start(e){await a.$.openLink(e.query[1])}}),a._.register({rule:{host:/^mangalist\.org$/},async ready(){await a._.wait(1e3);(0,a.$)(".btn-primary.url.text-center").click()}}),a._.register({rule:{host:/^mylink\.us$/},async ready(){await a._.wait(8e3);(0,a.$)("div.skip_btn a").click()}}),a._.register({rule:{host:/^nmac\.to$/,path:/^\/dl\/(.+)/},async ready(){const e=(0,a.$)(".btn-medium.btn-block");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^noriskdomain\.com$/},async ready(){await a._.wait(1e4);(0,a.$)(".uk-button-primary.go-to-button").click(),await a._.wait(1e3);(0,a.$)(".uk-button-primary.go-to-button").click()}}),a._.register({rule:{host:/^noweconomy\.live$/},async ready(){const e=(0,a.$)('[class="btn-main get-link"]');await a.$.openLink(e.href)}}),a._.register({rule:{host:/^www\.oni\.vn$/},async ready(){a.$.remove("iframe");let e=a.$.searchFromScripts(/data:"([^"]+)"/);if(!e)throw new a._.AdsBypasserError("pattern changed");e=e[1];const t=await a.$.get("/click.html",e);await a.$.openLink(t)}}),a._.register({rule:{host:/^otomi-games\.com$/,path:/^\/go\//},async ready(){const e=(0,a.$)("#wpsafe-link a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^(www\.)?ouo\.(io|press)$/,path:/(^\/\w+$|^\/go\/\w+$)/},async ready(){(0,a.$)("form").submit()}}),a._.register({rule:{host:/^paylinnk\.com$/},async ready(){await a._.wait(2e3);(0,a.$)("div.banner.banner-captcha").click();(0,a.$)(".btn.btn-success.btn-lg.get-link").click()}}),a._.register({rule:{host:/^icerik\.site$/,path:/^\/go/},async ready(){await a._.wait(500);(0,a.$)("#get_link_btn").click()}}),a._.register({rule:{host:[/^realsht\.mobi$/]},async ready(){(0,a.$)("#download_link").click()}}),a._.register({rule:{host:/^preview\.rlu\.ru$/},async ready(){const e=(0,a.$)("#content > .long_url > a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^segmentnext\.com$/,path:/^\/interstitial\.html$/,query:/return_url=([^&]+)/},async start(e){await a.$.openLink(decodeURIComponent(e.query[1]))}}),a._.register({rule:{host:[/^shink\.me$/,/^shon\.xyz$/]},async ready(){(0,a.$)("#skip").submit()}}),a._.register({rule:{host:/^(short|srt)\.am$/},async ready(){await a._.wait(5e3),await a.$.openLink("",{post:{_image:"Continue"}})}}),function(){function e(e){const t=a.$.searchFromScripts(/xpid:"([^"]+)"/),r={adSessionId:e},n={Accept:"application/json, text/javascript"};t&&(n["X-NewRelic-ID"]=t);const o=setInterval((function(){a.$.get("/shortest-url/end-adsession",r,n).then((function(e){const t=JSON.parse(e);if("ok"==t.status&&t.destinationUrl){clearInterval(o),a.$.removeAllTimer();const e=decodeURIComponent(t.destinationUrl);return a.$.openLink(e)}}))}),1e3)}a._.register({rule:{host:[/^(cllkme|clkmein|corneey|ceesty)\.com$/,/^(destyy|festyy|gestyy)\.com$/,/^sh\.st$/],path:/^\/[\d\w]+/},async ready(){a.$.remove("iframe"),a.$.removeAllTimer();const t=a.$.searchFromScripts(/sessionId: "([\d\w]+)",/);if(t)return void e(t[1]);const r=new MutationObserver((t=>{t.forEach((()=>{const t=a.$.searchFromScripts(/sessionId: "([\d\w]+)",/);t&&(r.disconnect(),e(t[1]))}))}));r.observe(document.body,{childList:!0})}})}(),a._.register({rule:{host:[/^shortlinkto\.biz$/,/^uplinkto\.hair$/]},async ready(){const e=(0,a.$)(".view-well a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^(www\.)?shortly\.xyz$/},async ready(){await a._.wait(8e3);(0,a.$)(".btn-success.btn-lg.get-link").click()}}),a._.register({rule:{host:/^shortmoz\.link$/},async ready(){(0,a.$)(".btn.btn-primary.btn-block").click()}}),a._.register({rule:{host:/^(www\.)?similarsites\.com$/,path:/^\/goto\/([^?]+)/},async start(e){let t=e.path[1];/^https?:\/\//.test(t)||(t="http://"+t),await a.$.openLink(t)}}),a._.register({rule:{host:/^spacetica\.com$/},async ready(){(0,a.$)(".btn.btn-primary.btn-xs").click()}}),a._.register({rule:{host:/^www\.spaste\.com$/,path:/^\/site\//},async ready(){await a._.wait(15e3),(0,a.$)("#template-contactform-submit").click()}}),a._.register({rule:{host:/^stfly\.(me|xyz)$/},async ready(){(0,a.$)(".btn-captcha.m-2.form-send").click()}}),a._.register({rule:{host:/^blogbux\.net$/},async ready(){const e=(0,a.$)(".btn-captcha.m-2.form-send");await a._.wait(12e3),e.click()}}),a._.register({rule:{host:/^techtrendmakers\.com$/},async ready(){const e=(0,a.$)(".btn-captcha.m-2.form-send.step_btn");await a._.wait(6e3),e.click()}}),a._.register({rule:{host:/^(www\.)?supercheats\.com$/,path:/^\/interstitial\.html$/,query:/(?:\?|&)oldurl=([^&]+)(?:$|&)/},async start(e){await a.$.openLink(e.query[1])}}),a._.register({rule:{host:/^swzz\.xyz$/,path:/^\/link\//},async ready(){const e=(0,a.$)("a.btn.btn-primary");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^techgeek\.digital$/},async ready(){const e=(0,a.$)('[class="btn-main get-link"]');e&&e.click();const t=(0,a.$)('a[class="btn-main get-link"]');t&&await a.$.openLink(t.href)}}),a._.register({rule:{host:/^thinfi\.com$/},async ready(){const e=(0,a.$)("div p a");await a.$.openLink(e.href)}}),a._.register({rule:{host:/^go\.tnshort\.net$/},async ready(){await a._.wait(3e3);const e=(0,a.$)('a[class="btn btn-success btn-lg get-link"]');await a.$.openLink(e.href)}}),a._.register({rule:{host:/^tribuntekno\.com$/},async ready(){const e=a.$.$("#lite-human-verif-button");e&&e.click();const t=a.$.$("#lite-start-sora-button");t&&t.click()}}),a._.register({rule:{host:/^tutwuri\.id$/},async ready(){await a._.wait(1e3);(0,a.$)("#btn-1").click(),await a._.wait(12e3);(0,a.$)("#btn-2").click();(0,a.$)("#btn-3").click()}}),a._.register({rule:{host:/^urlbluemedia\.shop$/},async ready(){await a._.wait(7e3);(0,a.$)("input#nut").click()}}),a._.register({rule:{host:[/(^|\.)urlcash\.(com|org)$/,/^(detonating|smilinglinks|pornyhost|urlgalleries)\.com$/,/^looble\.net$/,/^xxxs\.org$/]},async ready(){if(a.$.window&&a.$.window.linkDestUrl)return void await a.$.openLink(a.$.window.linkDestUrl);const e=document.body.innerHTML.match(/linkDestUrl = '(.+)'/);e&&await a.$.openLink(e[1])}}),a._.register({rule:{host:/^(www\.)?vzturl\.com$/},async ready(){const e=(0,a.$)("frame[scrolling=yes]");await a.$.openLink(e.src)}}),a._.register({rule:{host:/^xpshort\.com$/},async ready(){await a._.wait(8e3);(0,a.$)(".btn-success.btn-lg.get-link").click()}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/ia-[aio]\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/ia-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/ib-[aior]\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/ib-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/i-[ai1]\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/i-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/x-[aor]\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/x-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/y-[ao1]\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/y-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^22pixx\.xyz$/,path:/^\/x-i\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/x","/y");await a.$.openLink(e)}}),a._.register({rule:{host:[/^abload\.de$/,/^imageup\.ru$/]},async ready(){const e=(0,a.$)("#image");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^acidimg\.cc$/,/^imx\.to$/]},async ready(){let e=a.$.$("#continuebutton, .button");e&&e.click(),e=(0,a.$)(".centred"),await a.$.openImage(e.src)}}),a._.register({rule:{host:/^bayimg\.com$/},async ready(){const e=(0,a.$)("#mainImage");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^beeimg\.com$/},async ready(){const e=(0,a.$)("#beeimage");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.casimages\.com$/},async ready(){const e=(0,a.$)("div.logo a img");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^cubeupload\.com$/},async ready(){const e=(0,a.$)("img.galleryBigImg");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^(depic|dpic)\.me$/},async ready(){const e=(0,a.$)("#pic");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.directupload\.net$/},async ready(){const e=(0,a.$)("#ImgFrame");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^fastpic\.org$/,path:/^\/view\//},async ready(){const e=(0,a.$)("#picContainer img");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^crownimg\.com$/,/^fotokiz\.com$/,/^imgbaron\.com$/,/^imgsen\.com$/,/^imgsto\.com$/,/^kropic\.com$/,/^kvador\.com$/,/^picbaron\.com$/,/^picdollar\.com$/,/^pics4upload\.com$/,/^silverpic\.com$/,/^barbit\.net$/,/^pics4you\.net$/,/^imgstar\.eu$/,/^www\.fappic\.com$/]},async ready(){const e=a.$.$("img.pic");if(e)return void await a.$.openImage(e.src);(0,a.$)("form").submit()}}),a._.register({rule:{host:/^www\.fotosik\.pl$/},async ready(){const e=(0,a.$)(".simple-photo img");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.hostpic\.org$/},async ready(){const e=(0,a.$)("#photo");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.imagebam\.com$/},async ready(){let e=a.$.$("#continue > a");e&&e.click(),e=(0,a.$)(".main-image"),await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imageban\.ru$/},async ready(){const e=(0,a.$)("#img_main");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imagehaha\.com$/,path:/\/*\/.*/},async ready(){const e=(0,a.$)("img.img-responsive");await a.$.openImage(e.src)}}),a._.register({rule:"https://www.imagehost.at/image/*",async ready(){const e=(0,a.$)('meta[property="og:image"]');await a.$.openImage(e.content)}}),a._.register({rule:{host:/^www\.imagenetz\.de$/},async ready(){const e=(0,a.$)(".img-rounded.img-responsive");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imageshack\.com$/,path:/^\/i\//},async ready(){const e=(0,a.$)("#lp-image");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^imagetwist\.com$/,/^imagenpic\.com$/,/^imagexport\.com$/,/^imageshimage\.com$/,/^croea\.com$/,/^vipr\.im$/]},async ready(){const e=(0,a.$)("img.pic");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imageupper\.com$/},async ready(){const e=(0,a.$)("#img");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.imagevenue\.com$/},async ready(){const e=(0,a.$)("#main-image");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^cloudgallery\.net$/,/^imgair\.net$/,/^imgblaze\.net$/,/^imgfrost\.net$/,/^img[a-z]{2,10}\.(sbs|shop)$/,/^pic[a-z]{2,10}\.(sbs|shop)$/,/^pix[a-z]{2,10}\.sbs$/]},async ready(){const e=a.$.searchFromScripts(/imgbg\.src = "([^"]+)";/);await a.$.openImage(e[1])}}),a._.register({rule:{host:[/^(imgbase|picforall)\.ru$/]},async ready(){let e=(0,a.$)("#pay_thumb_img img");e=e.getAttribute("onclick"),e=e.match(/mshow\('(.+)'\)/),e=e[1],await a.$.openImage(e)}}),a._.register({rule:{host:[/^imgbb\.com$/,/^ibb\.co$/]},async ready(){const e=(0,a.$)(".image-viewer-container img");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imgbox\.com$/},async ready(){const e=(0,a.$)("#img");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^2i\.(cz|sk)$/,/^(picnew|rintor)\.space$/,/^[0-9]{1,3}xpics\.space$/,/^imgcloud\.pw$/,/^pilot007\.org$/,/^img\.javstore\.net$/,/^www\.imghit\.com$/,/^xxxaddicted\.top$/],path:/^\/(image|i)\/.*/},async ready(){const e=(0,a.$)('link[rel="image_src"]');await a.$.openImage(e.href)}}),a._.register({rule:{host:/^imgdawgknuttz\.com$/},async ready(){await a._.wait(1e3);let e=a.$.$(".button");e&&e.click(),e=(0,a.$)(".centred"),await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^(www\.)?imgdrive\.net$/,/^(www\.)?(imgtaxi|imgwallet|imgadult)\.com$/]},async ready(){let e=(0,a.$)('meta[property="og:image"]');e=e.content.replace("small","big"),await a.$.openImage(e)}}),a._.register({rule:{host:/^imgflip\.com$/},async ready(){const e=(0,a.$)("#im");await a.$.openImage(e.src)}}),a._.register({rule:[{host:[/^imgking\.co$/,/^imgkings\.com$/],path:/^\/img*.*\.html/}],async ready(){const e=a.$.window.linkid;await a.$.openImage(e);const t=(0,a.$)("img[alt]");await a.$.openImage(t.src)}}),a._.register({rule:{host:/^imgprime\.com$/},async ready(){let e=a.$.$("#continuetoimage a");e?await a.$.openLink(e.href):(e=(0,a.$)("center a img"),await a.$.openImage(e.src))}}),a._.register({rule:{host:/^imgspice\.com$/},async ready(){const e=(0,a.$)("#imgpreview.pic");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^imgtraffic\.com$/,path:/^\/a-1\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/a-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^imgtraffic\.com$/,path:/^\/i-1\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/i-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^imgtraffic\.com$/,path:/^\/n-1\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/n-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:{host:/^imgtraffic\.com$/,path:/^\/z-1\/(.+)\.jpeg\.html/},async start(){const e=window.location.href.replace("/z-","/").replace(".html","");await a.$.openLink(e)}}),a._.register({rule:["https://4fuk.me/upload/en/*","https://555fap.com/upload/en/*","https://ai18.pics/upload/en/*","https://cnpics.org/upload/en/*","https://cnxx.me/upload/en/*","https://cosplay18.pics/upload/en/*","https://idol69.net/upload/en/*","https://javball.com/upload/en/*","https://javsunday.com/upload/en/*","https://kin8-av.com/upload/en/*","https://ovabee.com/upload/en/*","https://pig69.com/upload/en/*","https://porn4f.com/upload/en/*"],async ready(){const e=(0,a.$)('meta[property="og:image"]');await a.$.openImage(e.content)}}),a._.register({rule:{host:/^keptarolo\.hu$/,path:/^(\/[^/]+\/[^/]+)$/},async start(e){await a.$.openImage("http://www.keptarolo.hu/kep"+e.path[1])}}),a._.register({rule:{host:[/^miragepics\.com$/,/^foto-pic\.net$/],path:/^\/viewer\.php$/,query:/file=([^&]+)/},start:async function(e){await a.$.openImage("/images/"+e.query[1])}}),a._.register({rule:{host:/^www\.mrjh\.org$/,path:/^\/gallery\.php$/,query:/^\?entry=(.+)$/},async ready(e){const t=e.query[1];await a.$.openImage("/"+t)}}),a._.register({rule:{host:/^www\.noelshack\.com$/},async ready(){const e=(0,a.$)('meta[property="og:image"]');await a.$.openImage(e.content)}}),a._.register({rule:{host:[/^dewimg\.com$/,/^outletpic\.com$/,/^pictwn\.com$/,/^picyield\.com$/,/^tezzpic\.com$/]},async ready(){const e=(0,a.$)("center > img.picview");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^www\.pic-upload\.de$/},async ready(){const e=(0,a.$)(".preview_picture_2b");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^picstate\.com$/,path:/^\/view\/full\/.*/},async ready(){const e=(0,a.$)("#image_container a img");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^picturedent\.org$/,/^everest\.picturedent\.org$/,/^pacific\.picturedent\.org$/],path:/^\/image\//},async ready(){const e=(0,a.$)("#full_img");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^(www\.)?pimpandhost\.com$/,path:/^\/image\/\d+/,query:/^\?size=original/},async ready(){const e=(0,a.$)("#overflow-wrapper img.original");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^(www\.)?pimpandhost\.com$/,path:/^\/image\/\d+/},async start(e){await a.$.openLink(e.path+"?size=original")}}),a._.register({rule:[{host:/^(www\.)?pixhost\.to$/,path:/^\/show\//},{host:[/^3xplanet\.(com|net)$/,/^javtenshi\.com$/,/^jav-load\.com$/,/^uncenav\.com$/],path:/^\/viewimage\//}],async ready(){a.$.remove("iframe, #ad");let e=a.$.$("#all");e&&(e.style.display=""),e=(0,a.$)("#show_image, #image"),await a.$.openImage(e.src)}}),a._.register({rule:{host:/^(www\.)?pixroute\.com$/},async ready(){const e=(0,a.$)("#download_box img#imgpreview.pic");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^postimg\.cc$/,/^postlmg\.cc$/,/^pixxxels\.cc$/]},async ready(){const e=(0,a.$)("#main-image");await a.$.openImage(e.src)}}),a._.register({rule:{host:[/^prnt\.sc$/],path:/\.html$/}}),a._.register({rule:{host:[/^prnt\.sc$/]},async ready(){const e=(0,a.$)("#screenshot-image");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^pronpic\.org$/},async ready(){const e=(0,a.$)("table.new_table2:nth-child(1) img.link").src.split("th_")[0]+(0,a.$)("table.new_table2:nth-child(2) img.link").src.split("th_")[1];await a.$.openImage(e)}}),a._.register({rule:{host:/^starimage\.club$/,path:/^\/image\/.+$/},async ready(){const e=(0,a.$)("input#embed-code-2.text-input").getAttribute("value");await a.$.openImage(e)}}),a._.register({rule:{host:/^thotimg\.xyz$/},async ready(){const e=(0,a.$)("center > img");await a.$.openImage(e.src)}}),a._.register({rule:[{host:[/^img\.trafficimage\.club$/,/^trafficimage\.club$/],path:/^\/image\//},{host:/^im\.ge$/,path:/^\/i\//}],async ready(){const e=(0,a.$)('meta[property="og:image"]');await a.$.openImage(e.content)}}),a._.register({rule:{host:/^www\.turboimagehost\.com$/,path:/^\/p\//},async ready(){const e=(0,a.$)("#imageid");await a.$.openImage(e.src)}}),a._.register({rule:{host:/^xxxwebdlxxx\.(org|top)$/},async ready(){const e=(0,a.$)(".centred, .centred_resized");await a.$.openImage(e.src)}})},(e,t,r)=>{r.r(t),r.d(t,{$:()=>m,_:()=>d});var a=r(8),n=r(9),o=r(1),i=r(2),s=r(10),c=r(11),l=r(12),u=r(5),p=r(13),_=r(3);const d={AdsBypasserError:o.AdsBypasserError,evil:p.evil,find:o.find,forEach:o.forEach,generateRandomIP:p.generateRandomIP,info:u.info,none:o.none,partial:o.partial,register:i.register,tryEvery:o.tryEvery,wait:o.wait,warn:u.warn};function m(e,t){return(0,s.querySelector)(e,t)}m.$=s.querySelectorOrNull,m.$$=s.querySelectorAll,m.block=s.block,m.get=a.get,m.getCookie=n.getCookie,m.nuke=p.nuke,m.openImage=c.openImage,m.openLink=l.openLink,m.post=a.post,m.remove=s.remove,m.removeAllTimer=p.removeAllTimer,m.resetCookies=n.resetCookies,m.searchFromScripts=s.searchFromScripts,m.setCookie=n.setCookie,m.toDOM=s.toDOM,m.window=_.usw},(e,t,r)=>{r.r(t),r.d(t,{get:()=>d,post:()=>m});var a=r(1),n=r(3),o=r(5);class i extends a.AdsBypasserError{constructor(e,t,r,a,n,o){super(`${e} ${t} got ${n}`),this._method=e,this._url=t,this._data=r,this._headers=a,this._status=n,this._response=o}get name(){return"AjaxError"}get method(){return this._method}get url(){return this._url}get data(){return this._data}get headers(){return this._headers}get status(){return this._status}get response(){return this._response}}function*s(e){if(e)for(const[t,r]of Object.entries(e))if(Array.isArray(r))for(const e of r)yield[[t,""],e];else if("object"==typeof r)for(const[e,a]of s(r))yield[[t,...e],a];else yield[[t],r]}function c(e){const[t,...r]=e;return`${t}${r.map((e=>`[${e}]`))}`}function l(e,t){const r=Object.getOwnPropertyNames(t);return(0,a.map)(r,(r=>{const a=t[r],n=`${e}[${r}]`;if("object"==typeof a)return l(n,a);return[n,a].map(encodeURIComponent).join("=")})).join("&")}function u(e){const t=typeof e;if(null===e||"string"!==t&&"object"!==t)return"";if("string"===t)return e;if(e instanceof String)return e.toString();const r=Object.getOwnPropertyNames(e);return(0,a.map)(r,(t=>{const r=e[t];if("object"==typeof r)return l(t,r);return[t,r].map(encodeURIComponent).join("=")})).join("&")}function p(e){const t=typeof e;if(null===e||"string"!==t&&"object"!==t)return"";if("string"===t)return e;if(e instanceof String)return e.toString();const r=new FormData;for(const[t,a]of s(e))r.append(c(t),a);return r}function _(e,t,r,s){(0,o.debug)("ajax",e,t,r,s);const c=document.createElement("a");c.href=t;const l={Host:c.hostname||window.location.host,Origin:window.location.origin,Referer:window.location.href,"X-Requested-With":"XMLHttpRequest"};return(0,a.forEach)(l,((e,t)=>{s[t]===a.none?delete s[t]:s[t]=e})),r&&(r=s["Content-Type"].indexOf("json")>=0?JSON.stringify(r):s["Content-Type"].indexOf("multipart")>=0?p(r):u(r),s["Content-Length"]=r.length),new Promise(((a,o)=>{n.GMAPI.xmlHttpRequest({method:e,url:t,data:r,headers:s,onload(n){200!==(n=void 0!==n.responseText?n:this).status?o(new i(e,t,r,s,n.status,n.responseText)):a(n.responseText)},onerror(a){a=void 0!==a.responseText?a:this,o(new i(e,t,r,s,a.status,a.responseText))}})}))}function d(e,t,r){return _("GET",e+(t=(t=u(t))?"?"+t:""),"",r=r||{})}function m(e,t,r){const n={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};return r&&(0,a.forEach)(r,((e,t)=>{n[t]=e})),_("POST",e,t,n)}},(e,t,r)=>{r.r(t),r.d(t,{getCookie:()=>o,resetCookies:()=>i,setCookie:()=>n});var a=r(1);function n(e,t){document.cookie=`${e}=${t};path=${location.pathname};`}function o(e){let[,t]=(0,a.find)(document.cookie.split(";"),(t=>{if(t.replace(/^\s*([a-zA-Z0-9-_]+)=.+$/,"$1")!==e)return a.none}));return t===a.none?null:(t=t.replace(/^\s*[a-zA-Z0-9-_]+=([^;]+).?$/,"$1"),t||null)}function i(){const e=document.domain,t=document.domain.replace(/^www\./,""),r=document.domain.replace(/^(\w+\.)+?(\w+\.\w+)$/,"$2"),n=new Date(1e3).toUTCString();(0,a.forEach)(document.cookie.split(";"),(a=>{const o=a.replace(/^\s*(\w+)=.+$/,"$1");document.cookie=`${o}=;expires=${n};`,document.cookie=`${o}=;path=/;expires=${n};`;const i=(e,t,r)=>`${e}=;path=/;domain=${t};expires=${r};`;document.cookie=i(o,e,n),document.cookie=i(o,t,n),document.cookie=i(o,r,n)}))}},(e,t,r)=>{r.r(t),r.d(t,{block:()=>p,querySelector:()=>i,querySelectorAll:()=>c,querySelectorOrNull:()=>s,remove:()=>u,searchFromScripts:()=>_,toDOM:()=>l});var a=r(1),n=r(5);class o extends a.AdsBypasserError{constructor(e){super(`\`${e}\` not found`)}get name(){return"DomNotFoundError"}}function i(e,t){t&&t.querySelector||(t=document);const r=t.querySelector(e);if(!r)throw new o(e);return r}function s(e,t){try{return i(e,t)}catch(e){return null}}function c(e,t){t&&t.querySelectorAll||(t=document);return t.querySelectorAll(e)}function l(e){try{const t=new DOMParser;return t.parseFromString(e,"text/html")}catch(e){throw new a.AdsBypasserError("could not parse HTML to DOM")}}function u(e,t){const r=c(e,t);(0,a.forEach)(r,(e=>{(0,n.debug)("removed",e),e.remove()}))}function p(e,t=null){t||(t=document);let r=null;if((0,a.isString)(e))r=()=>{u(e,t)};else{if("function"!=typeof e)throw new TypeError("wrong selector");r=t=>{t.addedNodes.forEach((t=>{e(t)&&t.parentNode.removeChild(t)}))}}new MutationObserver((e=>{e.forEach((e=>{r(e)}))})).observe(t,{childList:!0,subtree:!0})}function _(e,t){return e instanceof RegExp?function(e,t){const r=c("script",t),[,,n]=(0,a.find)(r,(t=>t.textContent.match(e)||a.none));return n===a.none?null:n}(e,t):(0,a.isString)(e)?function(e,t){const r=c("script",t),[,n]=(0,a.find)(r,(t=>{const r=t.textContent.indexOf(e);return r<0?a.none:r}));return n===a.none?null:n.textContent}(e,t):null}},(e,t,r)=>{r.r(t),r.d(t,{openImage:()=>c});var a=r(12),n=r(10),o=r(5),i=r(13),s=r(3);async function c(e,t){const r=!!(t=t||{}).replace,c=!!t.referer;if(r)return void await async function(e){const t=await s.GMAPI.getValue("redirect_image");if(!t)return;if(!e)return void(0,o.warn)("false url");(0,o.info)(`replacing body with \`${e}\` ...`),(0,i.removeAllTimer)(),("CSS1Compat"===document.compatMode?document.documentElement:document.body).style.overflow="",document.body=document.createElement("body");const r=document.createElement("div");document.body.appendChild(r);const a=document.createElement("img");a.src=e,r.appendChild(a);const c=await s.GMAPI.getValue("align_center"),l=await s.GMAPI.getValue("scale_image");(c||l)&&function(e,t){(0,n.remove)("style, link[rel=stylesheet]"),e.id="adsbypasser-wrapper",t.id="adsbypasser-image"}(r,a);c&&await async function(){p(await s.GMAPI.getResourceUrl("alignCenter"))}();await s.GMAPI.getValue("change_background")&&await async function(){const e=await s.GMAPI.getResourceUrl("bgImage");document.body.style.backgroundColor="#222222",document.body.style.backgroundImage=`url('${e}')`}();l&&await async function(e){p(await s.GMAPI.getResourceUrl("scaleImage")),e.naturalWidth&&e.naturalHeight?u.call(e):e.addEventListener("load",u);let t=0;window.addEventListener("resize",(()=>{window.clearTimeout(t),t=window.setTimeout(u.bind(e),100)}))}(a)}(e);await s.GMAPI.getValue("redirect_image")&&await(0,a.openLink)(e,{referer:c})}function l(){this.classList.toggle("adsbypasser-shrinked")}function u(){const e=this.naturalWidth,t=this.naturalHeight,r=document.documentElement.clientWidth,a=document.documentElement.clientHeight;(e>r||t>a)&&!this.classList.contains("adsbypasser-resizable")?(this.classList.add("adsbypasser-resizable"),this.classList.add("adsbypasser-shrinked"),this.addEventListener("click",l)):e<=r&&t<=a&&this.classList.contains("adsbypasser-resizable")&&(this.removeEventListener("click",l),this.classList.remove("adsbypasser-shrinked"),this.classList.remove("adsbypasser-resizable"))}function p(e){const t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.head.appendChild(t)}},(e,t,r)=>{r.r(t),r.d(t,{openLink:()=>i});var a=r(1),n=r(5);function o(e){return document.body||(document.body=document.createElement("body")),document.body.appendChild(e),(0,a.wait)(0)}async function i(e,t){if(!(0,a.isString)(e)&&!e)return void(0,n.warn)("false URL");const r=void 0===(t=t||{}).referer||t.referer,i=t.post,s=window.location.toString();(0,n.info)(`${s} -> ${e}`),i?await async function(e,t){t=t||{};const r=document.createElement("form");r.method="post",r.action=e,(0,a.forEach)(t,((e,t)=>{const a=document.createElement("input");a.type="hidden",a.name=t,a.value=e,r.appendChild(a)})),await o(r),r.submit()}(e,i):r?await async function(e){const t=document.createElement("a");t.href=e;let r=!1;t.addEventListener("click",(e=>{e.stopPropagation(),r=!0}),!0),await o(t),t.click();const a=setInterval((()=>{if(r)return(0,n.info)("already clicked"),void clearInterval(a);(0,n.info)("try again"),t.click()}),500)}(e):window.top.location.replace(e)}},(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{evil:()=>evil,generateRandomIP:()=>generateRandomIP,nuke:()=>nuke,removeAllTimer:()=>removeAllTimer});var util_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),util_platform__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),util_logger__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5);function removeAllTimer(){let e=window.setInterval(util_core__WEBPACK_IMPORTED_MODULE_0__.nop,10);for(;e>0;)window.clearInterval(e--);for(e=window.setTimeout(util_core__WEBPACK_IMPORTED_MODULE_0__.nop,10);e>0;)window.clearTimeout(e--)}function nuke(e){try{util_platform__WEBPACK_IMPORTED_MODULE_1__.usw.document.write("nuked by AdsBypasser, leading to ...<br/>")}catch(e){(0,util_logger__WEBPACK_IMPORTED_MODULE_2__.warn)("nuke failed",e)}const t=document.createElement("a");t.href=e,t.textContent=e,document.body.appendChild(t)}function generateRandomIP(){return[0,0,0,0].map((()=>Math.floor(256*Math.random()))).join(".")}function evil(script){return((GM,GM_deleteValue,GM_getResourceURL,GM_getValue,GM_openInTab,GM_registerMenuCommand,GM_setValue,GM_xmlhttpRequest,unsafeWindow,window)=>eval(script))()}}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);var util_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),util_dispatcher__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),util_platform__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),util_config__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),util_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_ADSBYPASSER_HANDLERS___WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6);const isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;function disableWindowOpen(){try{util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.open=function(){return{closed:!1}}}catch(e){(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.warn)("cannot mock window.open")}util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.alert=util_core__WEBPACK_IMPORTED_MODULE_0__.nop,util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.confirm=util_core__WEBPACK_IMPORTED_MODULE_0__.nop}function disableLeavePrompt(e){if(!e)return;const t={set:function(){(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("blocked onbeforeunload")}};e.onbeforeunload=void 0,isSafari?e.__defineSetter__("onbeforeunload",t.set):util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.Object.defineProperty(e,"onbeforeunload",{configurable:!0,enumerable:!1,get:void 0,set:t.set});const r=e.addEventListener;e.addEventListener=function(e){if("beforeunload"!==e)return r.apply(this,arguments);(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("blocked addEventListener onbeforeunload")}}function changeTitle(){document.title+=" - AdsBypasser"}async function beforeDOMReady(e){const t=await(0,util_config__WEBPACK_IMPORTED_MODULE_3__.dumpConfig)();(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("working on\n%s \nwith\n%s",window.location.toString(),JSON.stringify(t)),disableLeavePrompt(util_platform__WEBPACK_IMPORTED_MODULE_2__.usw),disableWindowOpen(),await e.start()}async function afterDOMReady(e){disableLeavePrompt(util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.document.body),changeTitle(),await e.ready()}function waitDOM(){return new Promise((e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{e()})):e()}))}async function main(){if(util_platform__WEBPACK_IMPORTED_MODULE_2__.rawUSW.top!==util_platform__WEBPACK_IMPORTED_MODULE_2__.rawUSW.self)return;util_platform__WEBPACK_IMPORTED_MODULE_2__.GMAPI.registerMenuCommand("AdsBypasser - Configure",(()=>{util_platform__WEBPACK_IMPORTED_MODULE_2__.GMAPI.openInTab("https://adsbypasser.github.io/configure.html")})),await(0,util_config__WEBPACK_IMPORTED_MODULE_3__.loadConfig)();const e=(0,util_dispatcher__WEBPACK_IMPORTED_MODULE_1__.findHandler)();return e?(await beforeDOMReady(e),await waitDOM(),void await afterDOMReady(e)):void 0}main().catch((e=>{(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.warn)(e)}))})();
1 // ==UserScript== 2 // @name AdsBypasser Lite 3 // @namespace AdsBypasser 4 // @description Bypass Ads 5 // @copyright 2012+, Wei-Cheng Pan, https://adsbypasser.github.io/ 6 // @version 7.29.0 7 // @license BSD 8 // @homepageURL https://adsbypasser.github.io/ 9 // @supportURL https://github.com/adsbypasser/adsbypasser/issues 10 // @updateURL https://adsbypasser.github.io/releases/adsbypasser.lite.es7.meta.js 11 // @downloadURL https://adsbypasser.github.io/releases/adsbypasser.lite.es7.user.js 12 // @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v7.29.0/resources/img/logo.png 13 // @grant GM_deleteValue 14 // @grant GM_getValue 15 // @grant GM_info 16 // @grant GM_openInTab 17 // @grant GM_registerMenuCommand 18 // @grant GM_setValue 19 // @grant GM_xmlhttpRequest 20 // @grant GM.deleteValue 21 // @grant GM.getValue 22 // @grant GM.info 23 // @grant GM.openInTab 24 // @grant GM.setValue 25 // @grant GM.xmlHttpRequest 26 // @grant unsafeWindow 27 // @noframes 28 // @run-at document-start 29 // @include http://* 30 // @include https://* 31 // @connect * 32 // ==/UserScript== 33 34 (()=>{var __webpack_modules__=[,(e,t,n)=>{n.r(t),n.d(t,{AdsBypasserError:()=>r,every:()=>a,find:()=>s,forEach:()=>o,isString:()=>u,map:()=>i,none:()=>d,nop:()=>_,partial:()=>l,tryEvery:()=>p,wait:()=>w});class r extends Error{constructor(e){super(e)}get name(){return"AdsBypasserError"}}function o(e,t){return c(e)?Array.prototype.forEach.call(e,t):Object.keys(e).forEach((n=>t(e[n],n,e)))}function a(e,t){return c(e)?Array.prototype.every.call(e,t):Object.keys(e).every((n=>t(e[n],n,e)))}function i(e,t){if(c(e))return Array.prototype.map.call(e,t);const n=Object.assign({},e);return Object.getOwnPropertyNames(n).forEach((r=>{n[r]=t(e[r],r,e)})),n}function s(e,t){for(const[n,r]of function*(e){if(c(e))return void(yield*Array.prototype.entries.call(e));const t=Object.getOwnPropertyNames(e);for(const n of t)yield[n,e[n]]}(e)){const o=t(r,n,e);if(o!==d)return[n,r,o]}return[d,d,d]}function c(e){return Array.isArray(e)||function(e){return"NodeList"===e.constructor.name}(e)}function l(e,...t){if("function"!=typeof e)throw new r("must give a function");return(...n)=>e(...t.concat(n))}function u(e){return"string"==typeof e||e instanceof String}function _(){}const d=_;function w(e){return new Promise((t=>{setTimeout(t,e)}))}function p(e,t){return new Promise((n=>{const r=setInterval((function(){const e=t();e!==d&&(clearInterval(r),n(e))}),e)}))}},(e,t,n)=>{n.r(t),n.d(t,{findHandler:()=>s,register:()=>a});var r=n(1);const o=[];function a(e){o.push(e)}function i(e,t,n,o){return Array.isArray(e)?function(e,t,n,o){const[,,a]=(0,r.find)(e,(e=>i(e,t,n,o)||r.none));return a!==r.none?a:null}(e,t,n,o):"function"==typeof e?function(e,t,n,r){return e(t,n,r)}(e,t,n,o):e instanceof RegExp?function(e,t){return t.match(e)}(e,t):(0,r.isString)(e)?function(e,t){let n=/\*|https?|file|ftp|chrome-extension/,r=/\*|(\*\.)?([^/*]+)/,o=/\/.*/,a=`^(${n.source})://(${r.source})?(${o.source})$`,i=new RegExp(a);const s=e.match(i);if(!s)return null;n=s[1],r=s[2];const c=s[3],l=s[4];if(o=s[5],"*"===n&&!/https?/.test(t.scheme))return null;if(n!==t.scheme)return null;if("file"!==n&&"*"!==r)if(c){if(i=t.host.indexOf(l),i<0||i+l.length!==t.host.length)return null}else if(r!==t.host)return null;return a=o.replace(/[*.[\]?+#]/g,(e=>"*"===e?".*":"\\"+e)),o=new RegExp(`^${a}$`),o.test(t.path)?t:null}(e,n):function(e,t){const n=(0,r.map)(e,((e,n)=>{if(e instanceof RegExp)return t[n].match(e);if(Array.isArray(e)){const[,,o]=(0,r.find)(e,(e=>t[n].match(e)||r.none));return o!==r.none?o:null}throw new r.AdsBypasserError("invalid rule")}));return(0,r.every)(n,(e=>!!e))?n:null}(e,o)}function s(){const e=window.location.toString(),t={scheme:window.location.protocol.slice(0,-1),host:window.location.host,path:window.location.pathname+window.location.search+window.location.hash},n={scheme:window.location.protocol,host:window.location.hostname,port:window.location.port,path:window.location.pathname,query:window.location.search,hash:window.location.hash},[a,s,c]=(0,r.find)(o,(o=>{const a=i(o.rule,e,t,n);return a||r.none}));return a===r.none?null:s.start||s.ready?{start:s.start?(0,r.partial)(s.start,c):r.nop,ready:s.ready?(0,r.partial)(s.ready,c):r.nop}:null}},(e,t,n)=>{n.r(t),n.d(t,{GMAPI:()=>i,rawUSW:()=>o,usw:()=>a});var r=n(1);const o=function(){let e=null;try{e=unsafeWindow}catch(t){try{e=(0,eval)("this").global}catch(e){}}return e||(0,eval)("this").window}(),a=function(){if("Greasemonkey"!==("object"==typeof GM_info&&GM_info?GM_info:"object"==typeof GM&&GM&&GM.info?GM.info:{}).scriptHandler)return o;const e={set:(e,t,n)=>t!==s&&(e[t]=c(n),!0),get(t,n){if(n===s)return t;const r=t[n],o=typeof r;return null===r||"function"!==o&&"object"!==o?r:new Proxy(r,e)},apply(e,t,n){n=Array.prototype.slice.call(n),e===unsafeWindow.Object.defineProperty&&(n[0]=n[0][s]),e===unsafeWindow.Function.apply&&(t=t[s],n[1]=Array.prototype.slice.call(n[1])),e===unsafeWindow.document.querySelector&&(t=t[s]),e===unsafeWindow.document.write&&(t=t[s]);const r=c(n);return e.apply(t,r)},construct(e,t){(t=Array.prototype.slice.call(t)).unshift(void 0);const n=c(t);return new(unsafeWindow.Function.prototype.bind.apply(e,n))}};return new Proxy(unsafeWindow,e)}(),i=function(){if(o.global)return null;const e={};"function"==typeof GM_openInTab?e.openInTab=GM_openInTab:e.openInTab=GM.openInTab;"function"==typeof GM_getValue?e.getValue=(e,t)=>Promise.resolve(GM_getValue(e,t)):e.getValue=GM.getValue;"function"==typeof GM_setValue?e.setValue=(e,t)=>Promise.resolve(GM_setValue(e,t)):e.setValue=GM.setValue;"function"==typeof GM_deleteValue?e.deleteValue=e=>Promise.resolve(GM_deleteValue(e)):e.deleteValue=GM.deleteValue;"function"==typeof GM_xmlhttpRequest?e.xmlHttpRequest=GM_xmlhttpRequest:e.xmlHttpRequest=GM.xmlHttpRequest;"function"==typeof GM_registerMenuCommand?e.registerMenuCommand=GM_registerMenuCommand:e.registerMenuCommand=r.nop;"function"==typeof GM_getResourceURL?e.getResourceUrl=e=>Promise.resolve(GM_getResourceURL(e)):"object"==typeof GM&&GM&&GM.getResourceUrl&&(e.getResourceUrl=GM.getResourceUrl);return e}();const s="__adsbypasser_reverse_proxy__";function c(e){if(null===e||!(e instanceof Object))return e;if(e===unsafeWindow)return e;if(e instanceof String)return e.toString();if(e instanceof Function)return exportFunction(e,unsafeWindow,{allowCrossOriginArguments:!0});if(e instanceof Array){const t=new unsafeWindow.Array;for(let n=0;n<e.length;++n)t.push(c(e[n]));return t}const t=new unsafeWindow.Object;return(0,r.forEach)(e,((e,n)=>{t[n]=c(e)})),t}},(e,t,n)=>{n.r(t),n.d(t,{dumpConfig:()=>d,loadConfig:()=>_});var r=n(1),o=n(2),a=n(3);const i=[{key:"version",default_:0,verify:e=>"number"==typeof e&&e>=0,normalize:u},{key:"align_center",default_:!0,verify:c,normalize:l},{key:"change_background",default_:!0,verify:c,normalize:l},{key:"redirect_image",default_:!0,verify:c,normalize:l},{key:"scale_image",default_:!0,verify:c,normalize:l},{key:"log_level",default_:1,verify:e=>"number"==typeof e&&e>=0&&e<=2,normalize:u}],s=[async()=>{const e=await a.GMAPI.getValue("align_center"),t=await a.GMAPI.getValue("change_background"),n=await a.GMAPI.getValue("scale_image"),r=await a.GMAPI.getValue("redirect_image"),o="boolean"==typeof e;"boolean"!=typeof t&&await a.GMAPI.setValue("change_background",!o||e),"boolean"!=typeof n&&await a.GMAPI.setValue("scale_image",!o||e),o||await a.GMAPI.setValue("align_center",!0),"boolean"!=typeof r&&await a.GMAPI.setValue("redirect_image",!0)},async()=>{"boolean"!=typeof await a.GMAPI.getValue("external_server_support")&&await a.GMAPI.setValue("external_server_support",!1)},async()=>{"number"!=typeof await a.GMAPI.getValue("log_level")&&await a.GMAPI.setValue("log_level",1)},async()=>{await a.GMAPI.deleteValue("external_server_support")}];function c(e){return"boolean"==typeof e}function l(e){return!!e}function u(e){return parseInt(e,10)}async function _(){await async function(){let e=i.map((async e=>{const t=await a.GMAPI.getValue(e.key);return e.verify(t)}));e=await Promise.all(e),(0,r.every)(e,(e=>e))||await a.GMAPI.setValue("version",0)}(),await async function(){let e=await a.GMAPI.getValue("version");if(0!==e&&!e)throw new r.AdsBypasserError("invalid version");for(;e<s.length;)s[e](),++e;await a.GMAPI.setValue("version",e)}(),(0,o.register)({rule:{host:/^adsbypasser\.github\.io$/,path:/^\/configure\.html$/},async ready(){await new Promise((e=>{const t=setInterval((()=>{a.usw.render&&(clearInterval(t),e())}),50)})),a.usw.commit=async e=>{for(const[t,n]of Object.entries(e))await a.GMAPI.setValue(t,n)},a.usw.render({version:await a.GMAPI.getValue("version"),options:{align_center:{type:"checkbox",value:await a.GMAPI.getValue("align_center"),label:"Align Center",help:"Align image to the center if possible. (default: enabled)"},change_background:{type:"checkbox",value:await a.GMAPI.getValue("change_background"),label:"Change Background",help:"Use Firefox-like image background if possible. (default: enabled)"},redirect_image:{type:"checkbox",value:await a.GMAPI.getValue("redirect_image"),label:"Redirect Image",help:["Directly open image link if possible. (default: enabled)","If disabled, redirection will only works on link shortener sites."].join("<br/>\n")},scale_image:{type:"checkbox",value:await a.GMAPI.getValue("scale_image"),label:"Scale Image",help:"When image loaded, scale it to fit window if possible. (default: enabled)"},log_level:{type:"select",value:await a.GMAPI.getValue("log_level"),menu:[[0,"0 (quiet)"],[1,"1 (default)"],[2,"2 (verbose)"]],label:"Log Level",help:["Log level in developer console. (default: 1)","0 will not print anything in console.","1 will only print logs on affected sites.","2 will print on any sites."].join("<br/>\n")}}})}})}async function d(){let e=i.map((async e=>[e.key,await a.GMAPI.getValue(e.key)]));e=await Promise.all(e);const t={};for(const[n,r]of e)t[n]=r;return t}},(e,t,n)=>{n.r(t),n.d(t,{debug:()=>i,info:()=>s,warn:()=>c});var r=n(1);const o=!1;function a(e,t){if(o)return;t=Array.prototype.slice.call(t),(0,r.isString)(t[0])?t[0]="AdsBypasser: "+t[0]:t.unshift("AdsBypasser:");const n=console[e];"function"==typeof n&&n.apply(console,t)}function i(){a("debug",arguments)}function s(){a("info",arguments)}function c(){a("warn",arguments)}},(e,t,n)=>{n.r(t);var r=n(7);r._.register({rule:{host:/^ak\.sv$/},async ready(){await r._.wait(1e3);(0,r.$)("html").click(),await r._.wait(6e3);const e=(0,r.$)('a[class="download_button"]');await r.$.openLink(e)}}),r._.register({rule:{host:/^(www\.)?apunkasoftware\.net$/},async ready(){const e=(0,r.$)("div#proceed-now > a#dlink");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^thefileslocker\.net$/},async ready(){(0,r.$)("#downloadbtn").click()}}),r._.register({rule:{host:[/^(www\.)?indishare\.org$/,/^uploadrar\.com$/]},async ready(){const e=(0,r.$)("button#downloadbtn.downloadbtn");e.removeAttribute("disabled"),e.click()}}),r._.register({rule:{host:/^infidrive\.net$/},async ready(){await r._.wait(4e4);(0,r.$)("button.inline-flex:nth-child(2)").click()}}),r._.register({rule:{host:/^k2s\.cc$/},async ready(){await r._.wait(35e3);const e=(0,r.$)("a.link-to-file");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^katfile\.com$/},async ready(){const e=(0,r.$)('a[id="dlink"]');await r.$.openLink(e.href)}}),r._.register({rule:{host:/^(www\.)?keeplinks\.org$/},async ready(){(0,r.$)('[id="btnproceedsubmit"]').click()}}),r._.register({rule:"https://www.mirrored.to/files/*",async ready(){const e=(0,r.$)(".col-sm.centered.extra-top a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^multiup\.io$/},async ready(){(0,r.$)(".btn-info.btn-lg.btn-block").click()}}),r._.register({rule:{host:/^www\.onlinefreecourse\.net$/},async ready(){const e=(0,r.$)('a[class="btn btn-success"]');await r.$.openLink(e)}}),r._.register({rule:{host:/^sfile\.mobi$/},async ready(){await r._.wait(8e3);(0,r.$)("#download").click()}}),r._.register({rule:{host:/^uploadhaven\.com$/,path:/^\/download\//},async ready(){await r._.wait(18e3);(0,r.$)(".btn-submit-free.btn-download-free").click()}}),r._.register({rule:{host:/^usersdrive\.com$/},async ready(){const e=(0,r.$)(".btn-download");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^1ink\.cc$/},async ready(){const e=(0,r.$)("#countingbtn");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^1link\.club$/},async ready(){const e=(0,r.$)("#download.btn");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^1v\.to$/,path:/^\/t\/[a-zA-Z0-9/=]+/},async start(){const e=window.location.href.replace("/t/","/saliendo/");await r.$.openLink(e)}}),r._.register({rule:{host:/^a2zapk\.io$/},async ready(){const e=(0,r.$)("#dlbtn li a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^adfoc\.us$/},async ready(){const e=(0,r.$)(".skip");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^adshnk\.com$/},async ready(){await r._.wait(16e3);(0,r.$)('button[class="ui right labeled icon button primary huge fluid"]').click(),await r._.wait(18e3);const e=(0,r.$)('a[id="final_redirect"]');await r.$.openLink(e.href)}}),r._.register({rule:{host:/^www\.adz7short\.space$/},async ready(){const e=(0,r.$)("#continue");await r._.wait(1e4),e.click()}}),r._.register({rule:{host:/^bcvc\.ink$/},async ready(){await r._.wait(5e3);(0,r.$)("#getLink").click()}}),r._.register({rule:{host:/^(www\.)?biglistofwebsites\.com$/,path:/^\/go\/(\w+\.\w+)$/},async start(e){await r.$.openLink("http://"+e.path[1])}}),r._.register({rule:[{host:/^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,path:/\/o\/([a-zA-Z0-9]+)/}],async start(e){const t=window.atob(e.path[1]);await r.$.openLink(t)}}),r._.register({rule:{host:/^bioskopkeren\.boo$/},async ready(){await r._.wait(1e3);(0,r.$)(".reklamgec").click()}}),r._.register({rule:{host:/^boost\.ink$/},async start(){const e=(0,r.$)("body").getAttribute("result");e&&await r.$.openLink(atob(e))}}),r._.register({rule:{host:/^cocoleech\.com$/},async ready(){const e=(0,r.$)(".btn.btn-block.btn-success");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^cpmlink\.net$/},async ready(){const e=(0,r.$)("#btn-main");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^ctr\.sh$/},async ready(){await r._.wait(12e3);(0,r.$)(".btn.btn-primary.btn-captcha").click()}}),r._.register({rule:{host:/^cutpaid\.com$/},async ready(){let e=(0,r.$)(".btn-primary");e&&(await r._.wait(2e4),e.click()),e=(0,r.$)(".btn-success.btn-lg.get-link"),await r._.wait(9e3),await r.$.openLink(e.href)}}),r._.register({rule:{host:/^www\.dlink3\.com$/},async ready(){await r._.wait(12e3);const e=(0,r.$)('[class="myButton"]');await r.$.openLink(e.href)}}),r._.register({rule:{host:/^dlupload\.com$/},async ready(){await r._.wait(3500);(0,r.$)(".btn-block.btn-primary.text-white.shadow.m-1.position-relative.up-tooltip-container").click(),await r._.wait(6e3);(0,r.$)(".btn-block.continue-btn-bg").click()}}),r._.register({rule:{host:/^earnlink\.io$/},async ready(){const e=r.$.searchFromScripts(/"([^"]+)"\)\.html\("Continue"\)/);await r.$.openLink(e[1])}}),r._.register({rule:{host:/^forex-trnd\.com$/},async ready(){await r._.wait(1e4);(0,r.$)(".get-link").click()}}),r._.register({rule:{host:/^exeo\.app$/},async ready(){(0,r.$)(".link-button.button").click(),await r._.wait(2e3);(0,r.$)(".link-button").click(),await r._.wait(6e3);(0,r.$)(".link-button.get-link").click()}}),r._.register({rule:{host:/^fc-lc\.(com|xyz)$/},async ready(){await r._.wait(2e3);(0,r.$)(".btn-primary.btn-captcha.mb-4").click()}}),r._.register({rule:{host:/^loaninsurehub\.com$/},async ready(){const e=(0,r.$)("#glink");e&&e.click(),await r._.wait(12e3),r.$.remove("#overlay");const t=(0,r.$)("#surl");t&&t.click()}}),r._.register({rule:{host:/^fir3\.net$/},async ready(){await r._.wait(12e3);(0,r.$)(".btn.btn-success.btn-lg.get-link").click()}}),r._.register({rule:{host:/^get-click2\.blogspot\.com$/},async ready(){const e=(0,r.$)("button#gotolink");e.removeAttribute("disabled"),await r._.wait(1),e.click()}}),r._.register({rule:{host:/^getthot\.com$/},async ready(){await r._.wait(12e3);const e=(0,r.$)(".skip-btn");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^gplinks\.co$/},async ready(){await r._.wait(8e3);(0,r.$)(".get-link").click()}}),r._.register({rule:{host:/^hen-tay\.net$/,path:/^\/go\//},async ready(){const e=(0,r.$)("#download_url div a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^hotshorturl\.com$/},async ready(){const e=(0,r.$)("frame[scrolling=yes]");await r.$.openLink(e.src)}}),r._.register({rule:{host:/^icutlink\.com$/},async ready(){await r._.wait(1e4);const e=(0,r.$)(".btn-success.btn-lg.get-link");await r.$.openLink(e)}}),r._.register({rule:{host:/^zegtrends\.com$/},async ready(){await r._.wait(12e3);(0,r.$)("div > button.bsub").click()}}),r._.register({rule:{host:/^imagetwist\.netlify\.app$/},async ready(){const e=(0,r.$)(".btn.btn-dark");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^www\.javlibrary\.com$/,query:/url=([^&]+)/},async start(e){await r.$.openLink(decodeURIComponent(e.query[1]))}}),r._.register({rule:{host:/^kimochi\.info$/,path:/^\/inter$/},async ready(){const e=(0,r.$)("a#next");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^(www\.)?kingofshrink\.com$/},async ready(){const e=(0,r.$)("#textresult > a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^linegee\.net$/},async ready(){(0,r.$)("p.kecil a").click()}}),r._.register({rule:{host:/^link\.turkdown\.com$/},async ready(){await r._.wait(5e3);const e=(0,r.$)(".btn-success.btn-lg.get-link");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^link1s\.com$/},async ready(){await r._.wait(1e4);(0,r.$)(".btn.btn-success.btn-lg.get-link").click()}}),function(){r._.register({rule:{host:[/^adsafelink\.com$/,/^birdurls\.com$/,/^dz4link\.com$/,/^(linkmoni|shrinkcash)\.com$/,/^shrt10\.com$/,/^tmearn\.net$/,/^vinaurl\.net$/,/^payskip\.org$/,/^clik\.pw$/,/^miniurl\.pw$/,/^aylink\.co$/,/^(clk|oko)\.sh$/,/^cpmlink\.pro$/,/^gitlink\.pro$/,/^megalink\.pro$/,/^met\.bz/,/^mitly\.us$/,/^oke\.io$/,/^pahe\.plus$/,/^pingit\.im$/,/^thotpacks\.xyz$/]},async ready(){const e=new t;await e.call()}});class e{constructor(){this._overlaySelector=['[class$="Overlay"]',"#__random_class_name__","#headlineatas","#myModal",".opacity_wrapper","#overlay"].join(", "),this._formSelector=["#go-link",".go-link","#originalLink.get-link",'form[action="/links/go"]'].join(", ")}removeOverlay(){r.$.remove(this._overlaySelector),r.$.block(this._overlaySelector,document.body),setInterval((()=>{document.body.style.overflow="initial"}),500)}removeFrame(){r.$.remove("iframe")}async call(){if(!await this.prepare())return;const e=await this.getMiddleware();if(!e)return void this.withoutMiddleware();const t=await this.getURL(e);await r.$.openLink(t)}}class t extends e{async prepare(){this.removeOverlay();if(!r.$.$("#captchaShortlink, div.g-recaptcha"))return!0;r._.info("recaptcha detected, stop"),r._.info("trying to listen submit button");return!!r.$.$("#invisibleCaptchaShortlink")&&void 0}async submitListen(e){new MutationObserver((()=>{e.disabled||e.click()})).observe(e,{attributes:!0})}async getMiddleware(){return await async function(e){let t=r.$.window.$;for(;!t;)await r._.wait(50),t=r.$.window.$;const n=t(e);if(n.length>0)return n;return null}(this._formSelector)}withoutMiddleware(){(0,r.$)("#link-view").submit()}async getURL(e){for(;;){await r._.wait(1e3);try{const t=await n(e);if(t)return t}catch(e){r._.warn(e)}}}}function n(e){return new Promise(((t,n)=>{e.is("a")&&e.attr("href")&&t(e.attr("href"));r.$.window.$.ajax({dataType:"json",type:"POST",url:e.attr("action"),data:e.serialize(),success:e=>{e.url?t(e.url):n(new r._.AdsBypasserError(e.message))},error:(e,t,o)=>{r._.warn(e,t,o),n(new r._.AdsBypasserError("request error"))}})}))}}(),r._.register({rule:{host:/^n\.fcd\.su$/},async ready(){const e=(0,r.$)("a.btn:nth-child(2)");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^linkpoi\.me$/},async ready(){await r._.wait(6e3);(0,r.$)(".btn.btn-primary.btn-block.redirect.get-link").click()}}),r._.register({rule:{host:/^linkshrink\.net$/,path:/^\/[a-zA-Z0-9]+$/},async start(){r.$.window._impspcabe=0},async ready(){let e=r.$.searchFromScripts(/revC\("([^"]+)"\)/);e=atob(e[1]),await r.$.openLink("/"+e)}}),r._.register({rule:{host:/^linksly\.co$/},async ready(){(0,r.$)(".btn-primary").click()}}),r._.register({rule:{host:[/^go\.linksly\.co$/,/^go\.bitcosite\.com$/]},async ready(){await r._.wait(8e3);const e=(0,r.$)(".btn-success.btn-lg.get-link");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^lnk2\.cc$/,path:/^\/go\//},async ready(){r.$.remove("iframe, .popupOverlay"),await r._.wait(18e3);(0,r.$)("#getLink").click()}}),r._.register({rule:{host:/^www\.lolinez\.com$/,query:/\?(.+)/},async start(e){await r.$.openLink(e.query[1])}}),r._.register({rule:{host:/^mangalist\.org$/},async ready(){await r._.wait(1e3);(0,r.$)(".btn-primary.url.text-center").click()}}),r._.register({rule:{host:/^mylink\.us$/},async ready(){await r._.wait(8e3);(0,r.$)("div.skip_btn a").click()}}),r._.register({rule:{host:/^nmac\.to$/,path:/^\/dl\/(.+)/},async ready(){const e=(0,r.$)(".btn-medium.btn-block");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^noriskdomain\.com$/},async ready(){await r._.wait(1e4);(0,r.$)(".uk-button-primary.go-to-button").click(),await r._.wait(1e3);(0,r.$)(".uk-button-primary.go-to-button").click()}}),r._.register({rule:{host:/^noweconomy\.live$/},async ready(){const e=(0,r.$)('[class="btn-main get-link"]');await r.$.openLink(e.href)}}),r._.register({rule:{host:/^www\.oni\.vn$/},async ready(){r.$.remove("iframe");let e=r.$.searchFromScripts(/data:"([^"]+)"/);if(!e)throw new r._.AdsBypasserError("pattern changed");e=e[1];const t=await r.$.get("/click.html",e);await r.$.openLink(t)}}),r._.register({rule:{host:/^otomi-games\.com$/,path:/^\/go\//},async ready(){const e=(0,r.$)("#wpsafe-link a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^(www\.)?ouo\.(io|press)$/,path:/(^\/\w+$|^\/go\/\w+$)/},async ready(){(0,r.$)("form").submit()}}),r._.register({rule:{host:/^paylinnk\.com$/},async ready(){await r._.wait(2e3);(0,r.$)("div.banner.banner-captcha").click();(0,r.$)(".btn.btn-success.btn-lg.get-link").click()}}),r._.register({rule:{host:/^icerik\.site$/,path:/^\/go/},async ready(){await r._.wait(500);(0,r.$)("#get_link_btn").click()}}),r._.register({rule:{host:[/^realsht\.mobi$/]},async ready(){(0,r.$)("#download_link").click()}}),r._.register({rule:{host:/^preview\.rlu\.ru$/},async ready(){const e=(0,r.$)("#content > .long_url > a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^segmentnext\.com$/,path:/^\/interstitial\.html$/,query:/return_url=([^&]+)/},async start(e){await r.$.openLink(decodeURIComponent(e.query[1]))}}),r._.register({rule:{host:[/^shink\.me$/,/^shon\.xyz$/]},async ready(){(0,r.$)("#skip").submit()}}),r._.register({rule:{host:/^(short|srt)\.am$/},async ready(){await r._.wait(5e3),await r.$.openLink("",{post:{_image:"Continue"}})}}),function(){function e(e){const t=r.$.searchFromScripts(/xpid:"([^"]+)"/),n={adSessionId:e},o={Accept:"application/json, text/javascript"};t&&(o["X-NewRelic-ID"]=t);const a=setInterval((function(){r.$.get("/shortest-url/end-adsession",n,o).then((function(e){const t=JSON.parse(e);if("ok"==t.status&&t.destinationUrl){clearInterval(a),r.$.removeAllTimer();const e=decodeURIComponent(t.destinationUrl);return r.$.openLink(e)}}))}),1e3)}r._.register({rule:{host:[/^(cllkme|clkmein|corneey|ceesty)\.com$/,/^(destyy|festyy|gestyy)\.com$/,/^sh\.st$/],path:/^\/[\d\w]+/},async ready(){r.$.remove("iframe"),r.$.removeAllTimer();const t=r.$.searchFromScripts(/sessionId: "([\d\w]+)",/);if(t)return void e(t[1]);const n=new MutationObserver((t=>{t.forEach((()=>{const t=r.$.searchFromScripts(/sessionId: "([\d\w]+)",/);t&&(n.disconnect(),e(t[1]))}))}));n.observe(document.body,{childList:!0})}})}(),r._.register({rule:{host:[/^shortlinkto\.biz$/,/^uplinkto\.hair$/]},async ready(){const e=(0,r.$)(".view-well a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^(www\.)?shortly\.xyz$/},async ready(){await r._.wait(8e3);(0,r.$)(".btn-success.btn-lg.get-link").click()}}),r._.register({rule:{host:/^shortmoz\.link$/},async ready(){(0,r.$)(".btn.btn-primary.btn-block").click()}}),r._.register({rule:{host:/^(www\.)?similarsites\.com$/,path:/^\/goto\/([^?]+)/},async start(e){let t=e.path[1];/^https?:\/\//.test(t)||(t="http://"+t),await r.$.openLink(t)}}),r._.register({rule:{host:/^spacetica\.com$/},async ready(){(0,r.$)(".btn.btn-primary.btn-xs").click()}}),r._.register({rule:{host:/^www\.spaste\.com$/,path:/^\/site\//},async ready(){await r._.wait(15e3),(0,r.$)("#template-contactform-submit").click()}}),r._.register({rule:{host:/^stfly\.(me|xyz)$/},async ready(){(0,r.$)(".btn-captcha.m-2.form-send").click()}}),r._.register({rule:{host:/^blogbux\.net$/},async ready(){const e=(0,r.$)(".btn-captcha.m-2.form-send");await r._.wait(12e3),e.click()}}),r._.register({rule:{host:/^techtrendmakers\.com$/},async ready(){const e=(0,r.$)(".btn-captcha.m-2.form-send.step_btn");await r._.wait(6e3),e.click()}}),r._.register({rule:{host:/^(www\.)?supercheats\.com$/,path:/^\/interstitial\.html$/,query:/(?:\?|&)oldurl=([^&]+)(?:$|&)/},async start(e){await r.$.openLink(e.query[1])}}),r._.register({rule:{host:/^swzz\.xyz$/,path:/^\/link\//},async ready(){const e=(0,r.$)("a.btn.btn-primary");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^techgeek\.digital$/},async ready(){const e=(0,r.$)('[class="btn-main get-link"]');e&&e.click();const t=(0,r.$)('a[class="btn-main get-link"]');t&&await r.$.openLink(t.href)}}),r._.register({rule:{host:/^thinfi\.com$/},async ready(){const e=(0,r.$)("div p a");await r.$.openLink(e.href)}}),r._.register({rule:{host:/^go\.tnshort\.net$/},async ready(){await r._.wait(3e3);const e=(0,r.$)('a[class="btn btn-success btn-lg get-link"]');await r.$.openLink(e.href)}}),r._.register({rule:{host:/^tribuntekno\.com$/},async ready(){const e=r.$.$("#lite-human-verif-button");e&&e.click();const t=r.$.$("#lite-start-sora-button");t&&t.click()}}),r._.register({rule:{host:/^tutwuri\.id$/},async ready(){await r._.wait(1e3);(0,r.$)("#btn-1").click(),await r._.wait(12e3);(0,r.$)("#btn-2").click();(0,r.$)("#btn-3").click()}}),r._.register({rule:{host:/^urlbluemedia\.shop$/},async ready(){await r._.wait(7e3);(0,r.$)("input#nut").click()}}),r._.register({rule:{host:[/(^|\.)urlcash\.(com|org)$/,/^(detonating|smilinglinks|pornyhost|urlgalleries)\.com$/,/^looble\.net$/,/^xxxs\.org$/]},async ready(){if(r.$.window&&r.$.window.linkDestUrl)return void await r.$.openLink(r.$.window.linkDestUrl);const e=document.body.innerHTML.match(/linkDestUrl = '(.+)'/);e&&await r.$.openLink(e[1])}}),r._.register({rule:{host:/^(www\.)?vzturl\.com$/},async ready(){const e=(0,r.$)("frame[scrolling=yes]");await r.$.openLink(e.src)}}),r._.register({rule:{host:/^xpshort\.com$/},async ready(){await r._.wait(8e3);(0,r.$)(".btn-success.btn-lg.get-link").click()}})},(e,t,n)=>{n.r(t),n.d(t,{$:()=>w,_:()=>d});var r=n(8),o=n(9),a=n(1),i=n(2),s=n(10),c=n(11),l=n(5),u=n(12),_=n(3);const d={AdsBypasserError:a.AdsBypasserError,evil:u.evil,find:a.find,forEach:a.forEach,generateRandomIP:u.generateRandomIP,info:l.info,none:a.none,partial:a.partial,register:i.register,tryEvery:a.tryEvery,wait:a.wait,warn:l.warn};function w(e,t){return(0,s.querySelector)(e,t)}w.$=s.querySelectorOrNull,w.$$=s.querySelectorAll,w.block=s.block,w.get=r.get,w.getCookie=o.getCookie,w.nuke=u.nuke,w.openLink=c.openLink,w.post=r.post,w.remove=s.remove,w.removeAllTimer=u.removeAllTimer,w.resetCookies=o.resetCookies,w.searchFromScripts=s.searchFromScripts,w.setCookie=o.setCookie,w.toDOM=s.toDOM,w.window=_.usw},(e,t,n)=>{n.r(t),n.d(t,{get:()=>w,post:()=>p});var r=n(1),o=n(3),a=n(5);class i extends r.AdsBypasserError{constructor(e,t,n,r,o,a){super(`${e} ${t} got ${o}`),this._method=e,this._url=t,this._data=n,this._headers=r,this._status=o,this._response=a}get name(){return"AjaxError"}get method(){return this._method}get url(){return this._url}get data(){return this._data}get headers(){return this._headers}get status(){return this._status}get response(){return this._response}}function*s(e){if(e)for(const[t,n]of Object.entries(e))if(Array.isArray(n))for(const e of n)yield[[t,""],e];else if("object"==typeof n)for(const[e,r]of s(n))yield[[t,...e],r];else yield[[t],n]}function c(e){const[t,...n]=e;return`${t}${n.map((e=>`[${e}]`))}`}function l(e,t){const n=Object.getOwnPropertyNames(t);return(0,r.map)(n,(n=>{const r=t[n],o=`${e}[${n}]`;if("object"==typeof r)return l(o,r);return[o,r].map(encodeURIComponent).join("=")})).join("&")}function u(e){const t=typeof e;if(null===e||"string"!==t&&"object"!==t)return"";if("string"===t)return e;if(e instanceof String)return e.toString();const n=Object.getOwnPropertyNames(e);return(0,r.map)(n,(t=>{const n=e[t];if("object"==typeof n)return l(t,n);return[t,n].map(encodeURIComponent).join("=")})).join("&")}function _(e){const t=typeof e;if(null===e||"string"!==t&&"object"!==t)return"";if("string"===t)return e;if(e instanceof String)return e.toString();const n=new FormData;for(const[t,r]of s(e))n.append(c(t),r);return n}function d(e,t,n,s){(0,a.debug)("ajax",e,t,n,s);const c=document.createElement("a");c.href=t;const l={Host:c.hostname||window.location.host,Origin:window.location.origin,Referer:window.location.href,"X-Requested-With":"XMLHttpRequest"};return(0,r.forEach)(l,((e,t)=>{s[t]===r.none?delete s[t]:s[t]=e})),n&&(n=s["Content-Type"].indexOf("json")>=0?JSON.stringify(n):s["Content-Type"].indexOf("multipart")>=0?_(n):u(n),s["Content-Length"]=n.length),new Promise(((r,a)=>{o.GMAPI.xmlHttpRequest({method:e,url:t,data:n,headers:s,onload(o){200!==(o=void 0!==o.responseText?o:this).status?a(new i(e,t,n,s,o.status,o.responseText)):r(o.responseText)},onerror(r){r=void 0!==r.responseText?r:this,a(new i(e,t,n,s,r.status,r.responseText))}})}))}function w(e,t,n){return d("GET",e+(t=(t=u(t))?"?"+t:""),"",n=n||{})}function p(e,t,n){const o={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};return n&&(0,r.forEach)(n,((e,t)=>{o[t]=e})),d("POST",e,t,o)}},(e,t,n)=>{n.r(t),n.d(t,{getCookie:()=>a,resetCookies:()=>i,setCookie:()=>o});var r=n(1);function o(e,t){document.cookie=`${e}=${t};path=${location.pathname};`}function a(e){let[,t]=(0,r.find)(document.cookie.split(";"),(t=>{if(t.replace(/^\s*([a-zA-Z0-9-_]+)=.+$/,"$1")!==e)return r.none}));return t===r.none?null:(t=t.replace(/^\s*[a-zA-Z0-9-_]+=([^;]+).?$/,"$1"),t||null)}function i(){const e=document.domain,t=document.domain.replace(/^www\./,""),n=document.domain.replace(/^(\w+\.)+?(\w+\.\w+)$/,"$2"),o=new Date(1e3).toUTCString();(0,r.forEach)(document.cookie.split(";"),(r=>{const a=r.replace(/^\s*(\w+)=.+$/,"$1");document.cookie=`${a}=;expires=${o};`,document.cookie=`${a}=;path=/;expires=${o};`;const i=(e,t,n)=>`${e}=;path=/;domain=${t};expires=${n};`;document.cookie=i(a,e,o),document.cookie=i(a,t,o),document.cookie=i(a,n,o)}))}},(e,t,n)=>{n.r(t),n.d(t,{block:()=>_,querySelector:()=>i,querySelectorAll:()=>c,querySelectorOrNull:()=>s,remove:()=>u,searchFromScripts:()=>d,toDOM:()=>l});var r=n(1),o=n(5);class a extends r.AdsBypasserError{constructor(e){super(`\`${e}\` not found`)}get name(){return"DomNotFoundError"}}function i(e,t){t&&t.querySelector||(t=document);const n=t.querySelector(e);if(!n)throw new a(e);return n}function s(e,t){try{return i(e,t)}catch(e){return null}}function c(e,t){t&&t.querySelectorAll||(t=document);return t.querySelectorAll(e)}function l(e){try{const t=new DOMParser;return t.parseFromString(e,"text/html")}catch(e){throw new r.AdsBypasserError("could not parse HTML to DOM")}}function u(e,t){const n=c(e,t);(0,r.forEach)(n,(e=>{(0,o.debug)("removed",e),e.remove()}))}function _(e,t=null){t||(t=document);let n=null;if((0,r.isString)(e))n=()=>{u(e,t)};else{if("function"!=typeof e)throw new TypeError("wrong selector");n=t=>{t.addedNodes.forEach((t=>{e(t)&&t.parentNode.removeChild(t)}))}}new MutationObserver((e=>{e.forEach((e=>{n(e)}))})).observe(t,{childList:!0,subtree:!0})}function d(e,t){return e instanceof RegExp?function(e,t){const n=c("script",t),[,,o]=(0,r.find)(n,(t=>t.textContent.match(e)||r.none));return o===r.none?null:o}(e,t):(0,r.isString)(e)?function(e,t){const n=c("script",t),[,o]=(0,r.find)(n,(t=>{const n=t.textContent.indexOf(e);return n<0?r.none:n}));return o===r.none?null:o.textContent}(e,t):null}},(e,t,n)=>{n.r(t),n.d(t,{openLink:()=>i});var r=n(1),o=n(5);function a(e){return document.body||(document.body=document.createElement("body")),document.body.appendChild(e),(0,r.wait)(0)}async function i(e,t){if(!(0,r.isString)(e)&&!e)return void(0,o.warn)("false URL");const n=void 0===(t=t||{}).referer||t.referer,i=t.post,s=window.location.toString();(0,o.info)(`${s} -> ${e}`),i?await async function(e,t){t=t||{};const n=document.createElement("form");n.method="post",n.action=e,(0,r.forEach)(t,((e,t)=>{const r=document.createElement("input");r.type="hidden",r.name=t,r.value=e,n.appendChild(r)})),await a(n),n.submit()}(e,i):n?await async function(e){const t=document.createElement("a");t.href=e;let n=!1;t.addEventListener("click",(e=>{e.stopPropagation(),n=!0}),!0),await a(t),t.click();const r=setInterval((()=>{if(n)return(0,o.info)("already clicked"),void clearInterval(r);(0,o.info)("try again"),t.click()}),500)}(e):window.top.location.replace(e)}},(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{evil:()=>evil,generateRandomIP:()=>generateRandomIP,nuke:()=>nuke,removeAllTimer:()=>removeAllTimer});var util_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),util_platform__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),util_logger__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5);function removeAllTimer(){let e=window.setInterval(util_core__WEBPACK_IMPORTED_MODULE_0__.nop,10);for(;e>0;)window.clearInterval(e--);for(e=window.setTimeout(util_core__WEBPACK_IMPORTED_MODULE_0__.nop,10);e>0;)window.clearTimeout(e--)}function nuke(e){try{util_platform__WEBPACK_IMPORTED_MODULE_1__.usw.document.write("nuked by AdsBypasser, leading to ...<br/>")}catch(e){(0,util_logger__WEBPACK_IMPORTED_MODULE_2__.warn)("nuke failed",e)}const t=document.createElement("a");t.href=e,t.textContent=e,document.body.appendChild(t)}function generateRandomIP(){return[0,0,0,0].map((()=>Math.floor(256*Math.random()))).join(".")}function evil(script){return((GM,GM_deleteValue,GM_getResourceURL,GM_getValue,GM_openInTab,GM_registerMenuCommand,GM_setValue,GM_xmlhttpRequest,unsafeWindow,window)=>eval(script))()}}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);var util_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),util_dispatcher__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),util_platform__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),util_config__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),util_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_ADSBYPASSER_HANDLERS___WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6);const isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;function disableWindowOpen(){try{util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.open=function(){return{closed:!1}}}catch(e){(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.warn)("cannot mock window.open")}util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.alert=util_core__WEBPACK_IMPORTED_MODULE_0__.nop,util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.confirm=util_core__WEBPACK_IMPORTED_MODULE_0__.nop}function disableLeavePrompt(e){if(!e)return;const t={set:function(){(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("blocked onbeforeunload")}};e.onbeforeunload=void 0,isSafari?e.__defineSetter__("onbeforeunload",t.set):util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.Object.defineProperty(e,"onbeforeunload",{configurable:!0,enumerable:!1,get:void 0,set:t.set});const n=e.addEventListener;e.addEventListener=function(e){if("beforeunload"!==e)return n.apply(this,arguments);(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("blocked addEventListener onbeforeunload")}}function changeTitle(){document.title+=" - AdsBypasser"}async function beforeDOMReady(e){const t=await(0,util_config__WEBPACK_IMPORTED_MODULE_3__.dumpConfig)();(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.info)("working on\n%s \nwith\n%s",window.location.toString(),JSON.stringify(t)),disableLeavePrompt(util_platform__WEBPACK_IMPORTED_MODULE_2__.usw),disableWindowOpen(),await e.start()}async function afterDOMReady(e){disableLeavePrompt(util_platform__WEBPACK_IMPORTED_MODULE_2__.usw.document.body),changeTitle(),await e.ready()}function waitDOM(){return new Promise((e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{e()})):e()}))}async function main(){if(util_platform__WEBPACK_IMPORTED_MODULE_2__.rawUSW.top!==util_platform__WEBPACK_IMPORTED_MODULE_2__.rawUSW.self)return;util_platform__WEBPACK_IMPORTED_MODULE_2__.GMAPI.registerMenuCommand("AdsBypasser - Configure",(()=>{util_platform__WEBPACK_IMPORTED_MODULE_2__.GMAPI.openInTab("https://adsbypasser.github.io/configure.html")})),await(0,util_config__WEBPACK_IMPORTED_MODULE_3__.loadConfig)();const e=(0,util_dispatcher__WEBPACK_IMPORTED_MODULE_1__.findHandler)();return e?(await beforeDOMReady(e),await waitDOM(),void await afterDOMReady(e)):void 0}main().catch((e=>{(0,util_logger__WEBPACK_IMPORTED_MODULE_4__.warn)(e)}))})();