Greasy Fork is available in English.

A LOSS

Bypass AWIN without sacrificing time

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

You will need to install an extension such as Tampermonkey to install this 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         A LOSS
// @namespace    none
// @version      1.0
// @description  Bypass AWIN without sacrificing time
// @match        *://*/*
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const awinIndicators = [
        'awin',
        'awinaffid',
        'awc=',
        'affid=',
        'affiliate',
        'sv_campaign_id',
        'utm_source=awin',
        'utm_medium=awin'
    ];

    const url = new URL(window.location.href);
    const query = url.search.toLowerCase();
    const isAffiliate = awinIndicators.some(ind => query.includes(ind));
    if (!isAffiliate) return;

    document.documentElement.innerHTML = `
        <div style="position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:white;color:black;font-family:monospace;z-index:9999999;text-align:center;">
            <div style="font-size:24px;font-weight:bold;">Bypassing AWIN...</div>
            <pre style="font-size:10px;margin-top:20px;">
                            
                            ____________________________________
                    |                                                                |
                    |                                                                |
                    |          DEVELOPED BY DUCKY                                    |
                    |                                                                |
                     \\                                                              /
                       \\                                                          /
                           ----------------------        ---------------------
                                                  \\    /
                                                    \\ /

      ▓░░█                                       ░                                                  
 ░▒▒ ██▓██ ░▒▒▒▒▒▒▒▒░░▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒ ▒ ██  ▒▓▒▒▒▒▒▒▒▒▒█▒▒▒▒▒█▒█▒▒▓▒█░█▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒ 
 ░▒▒ ██▓▓█ ░▒▒▒▒▒▒▒░░▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░░██░▓▒██░░▒▒▒▒▒▒▒▒▒▒█▓▒▒▒█▒█▒▒▒▒█░█▒▒▓▒▓▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒ 
 ░▒▒ ██▓▓█ ░▒▒▒▒▒▒▒░█▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░░█████▒▓██▓▓▒▒░▒▒▒▒▒▒▒▓▓▒▒█▒█▒▒▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒ 
 ░▒▒ ██▓▓█ ░▒▒▒▒▒▒░█▓░▓▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒▒▒▒▒██░ ▒█▓░▓░▓█▒█▓▒▒▒▒▒▓▓██▓░█░▓▒▒▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▓▒ 
 ░▒░ ██▓▓█ ░▒▒▒▒▒░░█ ▒███████▓▓▒▒░░░░░░▒█░▒▒█░░██▓▒░█▒  ░█▒░▒█▓▓▒ ▒▓█▓░▓▒▓▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 
 ░▒▒ ██▓▓█  ▒▒▒▒▒░█░           ░▒░█▒▒▒▓█▒░███░▓████░███▒░▓██  ░     ▓██▓░▒▒▒█░█▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒ 
 ░▒▒ ██▓▓█  ▒▒▒▒▒░█░░▒▓█████▓█▓▒░██▒▒█▓▒░███▒░█▓ ██▒░███▓▓███░██▓███░░██▓▒▒▒█░█░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒ 
 ░▒▒ ██▓▓█  ▒▒▒▒▒░█▓▓▓▓▒▒▒▒▒▒█░░██░▒█░ ▒██▓ ▓██░░▒██▒▒███▒▒██▓░██░▓██░░▓██▒▒█▒█▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▒ 
 ░▒▒ ██▓▓█  ▒▒░▒░░▓▓▒▒▒▓▒▒▒░█░███░██  ███  ░██░ ░░██░  ███ ░███▓██░█▓█▒▒▒▓▓▒█░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒ 
 ░▒▒ ██▓▓█  ░▒▒░░░▓▒▒▒▒▓▓░░▓███▓▒▒   ██░▒▒░██  ░ ▓██▒▒  █▒  ▒█████▓▓▓█▓▒▓▒▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒ 
 ░▒▒ ██▓▓█░ ▒▒▒▒░▒▓▒▒▒░▓█░░███░░████████ ░██  ░░ █ ▒█▓█████  ▓█ █▓▓█▓█░█▒▓▒▒█░█▒▒▒▒▒▓▓▒▓▒▓▒▒▓▒▒▒▒▒▒ 
 ░▒▒ ██▒▓█░ ▒▒▒▒░▒█▒▒▒▒██░██▓ ██ █░█▒██ ░░  ░░▒░░▓  ███▓██ ██░▒ ██▓▓▓█░█▒▓▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▓▒▓▓▓▓▓▓▒ 
 ░▒▒ ██▓▓█░ ▒▒▒▒░░▓▒▒▓▒  ██▓ ██ ▒█░░░░█ ░░░░▒▒▒░░░░ ██▒░░██ ██  ███▒██░█░▓▒▒█░█▒▒▒▒▒▒▒▒▒▒▒▓▒▓▒▒▒▒▓▒ 
 ░▒▒ ██▓▓█░ ▒▒▒▒░░▓▓▓█░▓█░██  █ ░███▒▓█ ░▒▒▒▒▒▒▒▒▒░ ███░███ ██ ██▓█▓█▓▒▓▒▒▒▒█░█▒▒▒▒▒▒▒▓▒▒▓▒▒▓▒▒▓▓▓▒ 
 ░▒▒ ██▒▓█░ ▒▒▒▒░▒█▒▓▓ ▒█░██      ████  ░▒▒▒▒▒▒░░░░░ █████     ██ ▒▒░█▒█▒▓▒▒█░█▒▒▒▓▒▓▓▓▓▓▓▓▒▒▒▒▒▓▓▒ 
 ░▒▒ ██▓▓█  ░▒▒▒░░█▒▓▓   ▒██░ ░▒░      ░░░░░░▒░░▒█░░░  █  ░░░ ░█▓░█▓░█░█▒▓▒▒█░█▒▒▒▒▒▓▒▓▓▒▓▓▓▓▓▓▓▓▒ 
 ░▒▒ ██▓▓█  ▒▒▒░░░▓▓▒▓ ██▒▓█▓ ░▒▒░▓▒▒▒▒▓░▒▓▒░▒░▒██░░▒▒░  ░▒▒▓ ▒█░█▓▓▒█░█▒▓▒▒█░█▒▒▒▒▓▒▓▓▓▒▓▓▓▓▓▓▓▒ 
 ░▒▒ ▓█▓██  ▒░░░░░▓█▒▓▒  ▒░██ ░▒▒░█░▒░▒░░           ░▒▒░▒▒▒▒░ ██▓▓▓▒▒█░█▒▓▒▒█░█▒▒▒▒▓▒▓▓▓▒▓▓▓▓▓▓▓▓▒ 
 ░▒▒ ▓█▓▓█  ▒░░░ ░█▒▒▒▒██░ ░█░ ░░░░░░░░░▓███████████░░░░░░░░  ██▒▒▒▒▒█░█▒▒▒▒█░█▒▒▓▓▒▒▓▒▒▓▓▓▓▓▓▓▓▓▓▒ 
 ░▒▒ ▓█▓▓█ ░▒░░░ ▒█▒▒░▓████▓██  ░░░░▒▒▒ ▓███████▓██ ░▒▒▒▒░░  ▒██░█▒▒▒█░█▒▓▒▒█░█▒▒▓▓▓▒▒▓▒▒▒▒▓▓▓▓▓▓▓▒ 
 ░░░ ▓█▓▓█  ░░▒░░█▓▒░▒█▓▓▓█▓▓██░  ░░▒▒▒░ █░░░░░███░ ░▒▒░░   ██░█░█▒▒▒█░█▒▒▒▒█░█▒▒▓▒▒▒▓▓▒▒▒▓▓▓▒▓▓▓▓▒ 
 ░░░ ▓█▓▓█  ░░░ ░▓▒░░██▓▓█▓▓▒▓███▒  ░░▒░ █▓▒▓▒▒░▒█ ░▒░   ▒██▓█▒░░▒█▒░█░█▒▓▒▒█░█▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▒ 
      ██▓█      ██▓░██▓▓█▓█▓▓▓▓██▓██░  ░░░█▓▓▒▒▓█░ ░░ ▒█████▒█▓░░▒▓▓░█░█▒▓▒▒█░█▒▒▒▓▒▓▓▓▓▓▓▓▒▒▒▒▒▓▓▒ 
███████▓▓███████▒█░█████████████▓░▓░███    █████░ ░░█▓█░████████▒░▒█▒█░█▒▒▒▒█░█▒▒▒▓▓▒▓▓▓▒▓▓▓▓▓▓▓▓▓▒ 
▓████████████▒░▒█▒███▓    ░▓▒ ░░░░▒██▓████▓      █▓▓██▓▓█      ████▒▓█░█▒▓▓▒█░█▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 
            ▒░▓████   ░▓▓░  ░▒▒█▓█▒    ▓█░▒██████▓░█░    ░▒▓▓░░░░ ░█▒█▒█▒▒▒▒█░█▒▒▒▒▒▓▒▓▓▒▓▓▓▓▓▓▓▓▒ 
 ░▒▒▒▒▒░░░██░▓███░ ░ ░  ░█▒▒░▒░█   ▓███▓██▒▒▒▒▒▓░███████▓▒░░░▒▓░█  ░█▒▒█▒▒▒▒█░█▒▒▓▒▒▓▒▒▓▓▒▓▓▓▓▒▓▓▒ 
 ▒▒▒▒▒▒░▓█▓░▓████  ░░█▓░  ▒▒░█ ░██▓      █▓▒▒▒▒▓░█     ░░░░░░░▓░█ ░ ▒█░▒▓▒▒▒█░█▒▒▒▓▒▒▓▓▓▓▓▓▓▓▓▓▓▒ 
           ░░░░░                                                     ░                              
            </pre>
        </div>
    `;

    const cleanUrl = url.origin + url.pathname + url.hash;
    setTimeout(() => {
        window.location.replace(cleanUrl);
    }, 500);
})();