Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass linkvertise[.] com #11

Merged
merged 1 commit into from
Sep 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.next_build_id.txt
build/
25 changes: 25 additions & 0 deletions src/js/injection_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 3 additions & 0 deletions src/js/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@
"*://*.ceesty.com/*",
"*://*.corneey.com/*"
],
"useragent_iphone": [
"*://*.linkvertise.com/*"
],
"redirect_persist_id_path": [
"*://*.bercara.com/*",
"*://*.semawur.com/*",
Expand Down