Greasy Fork is available in English.

A LOSS

Bypass AWIN without sacrificing time

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);
})();