"click allow" bypasser for adfly links

try to take over the world!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         "click allow" bypasser for adfly links
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://*/*site=adfly*
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
    var url = new URL(document.URL); // Get the current URL
    var dest = url.searchParams.get("dest"); // get the parameter called dest ( it's an encoded URL that corresponds to the destination link [ usually the download link ] )
    var decoded = decodeURI(dest) // Decode the URL
    $('body').append("<div style='width: 100%'><a target='_blank'href='" + decoded + "' \
                     style='display: block; margin: auto !important; font-size: large !important; width:50%; text-align: center; background:white !important; color: black !important'>\
                     Download using the workaround script\
                     </a></div>"); // Append a button with the decoded link as its reference to the body
    // fuck adfly
})();