diff --git a/.gitignore b/.gitignore index efae0dba3..0e8357871 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .next_build_id.txt +build/ diff --git a/src/js/injection_script.js b/src/js/injection_script.js index fee7523d6..47d124402 100644 --- a/src/js/injection_script.js +++ b/src/js/injection_script.js @@ -774,6 +774,31 @@ domainBypass("universal-bypass.org",()=>{ window.universalBypassExternalVersion="UNIVERSAL_BYPASS_EXTERNAL_VERSION" window.universalBypassInjectionVersion="UNIVERSAL_BYPASS_INJECTION_VERSION" }) +domainBypass(/linkvertise\.(com|net)|link-to\.net/,()=>{ + // 64 bit decode + if (window.location.href.toString().indexOf("?r=") != -1) { + const urlParams = new URLSearchParams(window.location.search); + const r = urlParams.get('r') + safelyNavigate(atob(decodeURIComponent(r))); + } + + // normal redirect + let o={timestamp:new Date().getTime(),random:"6548307"}, + url="https://publisher.linkvertise.com/api/v1/redirect/link/static"+location.pathname; + fetch(url).then(r=>r.json()).then(json=>{ + if(json&&json.data.link.id) + { + o.link_id=json.data.link.id + url="https://publisher.linkvertise.com/api/v1/redirect/link"+location.pathname+"/target?serial="+btoa(JSON.stringify(o)) + } + }).then(()=>fetch(url)).then(r=>r.json()).then(json=>{ + if(json&&json.data.target) + { + safelyNavigate(json.data.target) + } + }) +}) + ensureDomLoaded(()=>{ if(ignoreCrowdBypass) { diff --git a/src/js/rules.json b/src/js/rules.json index c86d48db6..ddaf9dbb6 100644 --- a/src/js/rules.json +++ b/src/js/rules.json @@ -232,6 +232,9 @@ "*://*.ceesty.com/*", "*://*.corneey.com/*" ], + "useragent_iphone": [ + "*://*.linkvertise.com/*" + ], "redirect_persist_id_path": [ "*://*.bercara.com/*", "*://*.semawur.com/*",