Advertisement
XenoTheStrange

[Tampermonkey] Adfly, Skip Redirect Pages (ex. www13.darenjarvis.pro/pushredirect)

Sep 19th, 2021 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Adfly Pushredirect skip (www##.whatever.pro/pushredirect)
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Skips straight to the download instead of redirecting through several pages.
  6. // @author       You
  7. // @match        *.darenjarvis.pro/pushredirect/*
  8. // @match        *.christianivory.pro/pushredirect/*
  9. // @icon         https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fjasonbgraham.com%2Fwp-content%2Fuploads%2F2019%2F01%2Fjasonbgraham-poop-icon.png&f=1&nofb=1
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.     'use strict';
  15.     window.stop()
  16.     var href = document.location.href
  17.     var test = href.split("&")
  18.     var encodedTarget = test[test.length-1].split("dest=")[1]
  19.     var decodedTarget = decodeURIComponent(encodedTarget)
  20.     var finalTarget = decodedTarget.replace("http://", "https://")
  21.     document.location = finalTarget
  22.     // Your code here...
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement