RageRelicYT

Linkvertise bypass

Oct 18th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1.  
  2. // Userscript Made for bypass linkvertise link
  3. // Note that this scriopt can't bypass coder369's linkvertise link
  4.  
  5. window.alert("Click ok to bypass \n Note that this script cannot bypass coder369's link");
  6. var url = window.location.href.toString();
  7.  
  8. //Subscribe coder369 on youtube
  9.  
  10.  
  11. // ==UserScript==
  12. // @name Linkvertise Bypass
  13. // @namespace http://tampermonkey.net/
  14. // @version 0.4.1
  15. // @description linkvertise bypass
  16. // @author coder369
  17. // @match *://*.linkvertise.com/*
  18. // @match *://*.linkvertise.net/*
  19. // @match *://*.link-to.net/*
  20. // @exclude *://linkvertise.com/58504*
  21. // @exclude *://linkvertise.net/58504*
  22. // @exclude *://link-to.net/58504*
  23. // @exclude *://direct-link.net/58504*
  24. // @exclude *://file-link.net/58504*
  25. // @exclude *://up-to-down.com/58504*
  26. // @grant GM.xmlHttpRequest
  27. // ==/UserScript==
  28.  
  29.  
  30. if (url.indexOf("?r=") != -1) {
  31. window.location = atob(decodeURIComponent(url.substr(url.indexOf("?r=") + 3)));
  32. } else {
  33.  
  34. // iframe check
  35. if (window.parent.location != window.location) { return }
  36.  
  37. GM.xmlHttpRequest({
  38. method: "GET",
  39. headers: {
  40. "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"
  41. },
  42. url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/captcha",
  43. onload: function () { }
  44. });
  45. GM.xmlHttpRequest({
  46. method: "GET",
  47. headers: {
  48. "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"
  49. },
  50. url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/countdown_impression?trafficOrigin=network",
  51. onload: function () { }
  52. });
  53. GM.xmlHttpRequest({
  54. method: "GET",
  55. headers: {
  56. "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"
  57. },
  58. url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/todo_impression?mobile=true&trafficOrigin=network",
  59. onload: function () { }
  60. });
  61. GM.xmlHttpRequest({
  62. method: "GET",
  63. headers: {
  64. "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"
  65. },
  66. url: "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/click?trafficOrigin=network",
  67. onload: function () { }
  68. });
  69.  
  70. let o = {
  71. timestamp: new Date().getTime(),
  72. random: "6548307"
  73. };
  74. var bypass_url = "https://publisher.linkvertise.com/api/v1/redirect/link/static" + window.location.pathname;
  75. GM.xmlHttpRequest({
  76. method: "GET",
  77. headers: {
  78. "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"
  79. },
  80. url: bypass_url,
  81. onload: function (response) {
  82. var json = JSON.parse(response.responseText);
  83. o.link_id = json.data.link.id
  84. bypass_url = "https://publisher.linkvertise.com/api/v1/redirect/link" + window.location.pathname + "/target?serial=" + encodeURIComponent(btoa(JSON.stringify(o)));
  85.  
  86. GM.xmlHttpRequest({
  87. method: "GET",
  88. headers: {
  89. "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"
  90. },
  91. url: bypass_url,
  92. onload: function (response) {
  93. var json = JSON.parse(response.responseText);
  94. window.location = json.data.target;
  95. }
  96. });
  97. }
  98. });
  99. }
Add Comment
Please, Sign In to add comment