codergautamyt

Linkvertise Bypass for Universal Bypass [PATCHED: May 14 2021]

Sep 19th, 2020 (edited)
5,193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //PATCHED: AS OF MAY 14 2021
  2. //PLEASE USE thebypasser.com (LOGS YOUR IP USE A VPN)
  3. //OR USE fghfgh.codergautamyt.repl.co (CODER GAUTAMS OFFICIAL BYPASS SITE, WORKS BUT REALLY SLOW, DOESNT LOG IP)
  4. //THANKS FOR THIS AMAZING JOURNEY <3
  5.  
  6.  
  7. function change(url) {
  8.     var urlobj = new URL(url);
  9.     var path = urlobj.pathname
  10.     var done1 = path.substring(9, path.length - 33);
  11.     var done2 = "https://link-to.net" + done1
  12.     return done2;
  13. }
  14. //bypass function for linkvertise credit coder gautam yt
  15. function linkvertise(url11) {
  16.     //LINKVERTISE
  17.     return new Promise((resolve, reject) => {
  18.         var urltest = url11;
  19.         try {
  20.             var urltestobj = new URL(urltest)
  21.         } catch {
  22.             reject("Not a valid URL")
  23.         }
  24.         if (urltestobj.host != "linkvertise.download") {
  25.             url = url11;
  26.         } else {
  27.             try {
  28.                 url = change(url11)
  29.             } catch {
  30.                 url = url11
  31.             }
  32.         }
  33.         try {
  34.             urlobj = new URL(url)
  35.         } catch {
  36.  
  37.             reject("Not a valid URL")
  38.         }
  39.         urlobj = new URL(url)
  40.         dynamic = false;
  41.         if (urlobj.searchParams.get("r") != null) {
  42.             //dynamic
  43.             dynamic = true;
  44.             bypassed = atob(decodeURIComponent(url.substr(url.indexOf("?r=") + 3)));
  45.  
  46.         }
  47.         if (!dynamic) {
  48.             console.log(url)
  49.             path = urlobj.pathname
  50.             let o = {
  51.                 timestamp: new Date().getTime(),
  52.                 random: "6548307"
  53.             }
  54.  
  55.             url1 = "https://publisher.linkvertise.com/api/v1/redirect/link/static" + path
  56.             cors = "https://cors-anywhere.herokuapp.com/"
  57.  
  58.             //Request #1
  59.             fetch(url1).then(body => body.json()).then((json) => {
  60.                     try {
  61.                         if (json && json.data.link.id) {
  62.                             o.link_id = json.data.link.id
  63.                                 //Request #2
  64.                             url1 = "https://publisher.linkvertise.com/api/v1/redirect/link" + path + "/target?serial=" + encodeURIComponent(btoa(JSON.stringify(o)))
  65.                             fetch(url1).then(body => body.json()).then((json) => {
  66.  
  67.                                 if (json && json.data.target) {
  68.                                     bypassedthink = json.data.target
  69.                                     bypassedobj = new URL(bypassedthink);
  70.                                     bypassed = bypassedobj.searchParams.get("k")
  71.                                     resolve(bypassed)
  72.                                 }
  73.                             })
  74.                         }
  75.                     } catch (e) {
  76.                         reject("Invalid Linkvertise link. Could not fetch data\n" + e.toString())
  77.                     }
  78.                 })
  79.                 .catch(() => {
  80.                     reject("Couldn't fetch data")
  81.                 })
  82.         } else {
  83.             resolve(bypassed)
  84.         }
  85.     })
  86. }
  87. linkvertise("https://linkvertise.com/121383/codergautam").then(console.log).catch(console.log)
  88. domainBypass(/linkvertise\.(com|net)|link-to\.net|linkvertise\.download/,()=>{
  89.     document.write("<h1>Bypassing Linkvertise(takes up to 1 minute)</h1>")
  90. linkvertise(window.location)
  91. .then(safelyNavigate)
  92. .catch(document.write)
  93. })
RAW Paste Data