Arc Fluxus Bypasser

Faster Fluxus Bypass with automatic clipboard copying

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Arc Fluxus Bypasser
// @namespace    fluxus bypass
// @version      2.3
// @description  Faster Fluxus Bypass with automatic clipboard copying
// @author       Arc
// @match        https://flux.li/android/external/start.php?HWID=*
// @icon         https://flux.li/favicon.ico
// @grant        none
// @license      MIT
// @homepageURL  https://discord.gg/FzzyZdVY
// ==/UserScript==

(async function() {
    'use strict';

    const apiUrl = `https://fluxus-bypass-orcin.vercel.app/api/fluxus?link=${encodeURIComponent(window.location.href)}`;

    try {
        const response = await fetch(apiUrl);
        if (!response.ok) {
            const errorDetails = await response.text();
            throw new Error(`Network error: ${response.status} ${response.statusText}\nDetails: ${errorDetails}`);
        }

        const { key } = await response.json();
        if (!key) throw new Error('Key not found in the response');

        await navigator.clipboard.writeText(key);
        showBanner(`Your key has been successfully copied to clipboard: ${key}`);

    } catch (error) {
        console.error('Error:', error.message);
        showBanner(`An error occurred: ${error.message}`, true);
    }

    function showBanner(message, isError = false) {
        const banner = document.createElement('div');
        banner.style.position = 'fixed';
        banner.style.top = '10px';
        banner.style.left = '50%';
        banner.style.transform = 'translateX(-50%)';
        banner.style.backgroundColor = isError ? '#ff4d4d' : '#4caf50';
        banner.style.color = '#fff';
        banner.style.padding = '10px 20px';
        banner.style.borderRadius = '5px';
        banner.style.zIndex = '9999';
        banner.style.fontSize = '16px';
        banner.style.boxShadow = '0 2px 10px rgba(0,0,0,0.2)';
        banner.textContent = message;

        document.body.appendChild(banner);

        setTimeout(() => {
            banner.style.transition = 'opacity 0.5s';
            banner.style.opacity = '0';
            setTimeout(() => banner.remove(), 500);
        }, 3000);
    }
})();