codergautamyt

Linkvertise Bypasser for Tampermonkey

Aug 24th, 2020 (edited)
16,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         BypassAdditions
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.4.1
  5. // @updateURL    https://raw.githubusercontent.com/FireMasterK/BypassAdditions/master/script.js
  6. // @description  Bypass links that cannot be bypassed by Universal Bypass
  7. // @author       FireMasterK
  8. // @match        *://*.linkvertise.com/*
  9. // @match        *://*.linkvertise.net/*
  10. // @match        *://*.link-to.net/*
  11. // @grant        GM.xmlHttpRequest
  12. // ==/UserScript==
  13.  
  14. var url = window.location.href.toString();
  15.  
  16. if (url.indexOf("?r=") != -1) {
  17.   window.location = atob(decodeURIComponent(url.substr(url.indexOf("?r=") + 3)));
  18.     setTimeout(50000)
  19. } else {
  20.  
  21.   // iframe check
  22.   if (window.parent.location != window.location) { return }
  23.  
  24.   GM.xmlHttpRequest({
  25.     method: "GET",
  26.     headers: {
  27.       "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  28.     },
  29.     url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/captcha",
  30.     onload: function () { }
  31.   });
  32.   GM.xmlHttpRequest({
  33.     method: "GET",
  34.     headers: {
  35.       "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  36.     },
  37.     url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/countdown_impression?trafficOrigin=network",
  38.     onload: function () { }
  39.   });
  40.   GM.xmlHttpRequest({
  41.     method: "GET",
  42.     headers: {
  43.       "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  44.     },
  45.     url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/todo_impression?mobile=true&trafficOrigin=network",
  46.     onload: function () { }
  47.   });
  48.   GM.xmlHttpRequest({
  49.     method: "GET",
  50.     headers: {
  51.       "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  52.     },
  53.     url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/click?trafficOrigin=network",
  54.     onload: function () { }
  55.   });
  56.  
  57.   let o = {
  58.     timestamp: new Date().getTime(),
  59.     random: "6548307"
  60.   };
  61.   var bypass_url = "https://publisher.linkvertise.com/api/v1/redirect/link/static" + window.location.pathname;
  62.   GM.xmlHttpRequest({
  63.     method: "GET",
  64.     headers: {
  65.       "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  66.     },
  67.     url: bypass_url,
  68.     onload: function (response) {
  69.       var json = JSON.parse(response.responseText);
  70.       o.link_id = json.data.link.id
  71.       bypass_url = "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/target?serial=" + encodeURIComponent(btoa(JSON.stringify(o)));
  72.  
  73.       GM.xmlHttpRequest({
  74.         method: "GET",
  75.         headers: {
  76.           "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  77.         },
  78.         url: bypass_url,
  79.         onload: function (response) {
  80.           var json = JSON.parse(response.responseText);
  81.           window.location = json.data.target;
  82.         }
  83.       });
  84.     }
  85.   });
  86. }
Add Comment
Please, Sign In to add comment