Arc Fluxus Bypasser

Faster Fluxus Bypass with automatic clipboard copying

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

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

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

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

您需要先安装一款用户脚本管理器扩展,例如 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);
    }
})();