Swiftlnx.com Auto-Bypasser

⚡ Auto-Bypass swiftlnx.com by @Fer3on_Mod

当前为 2025-09-05 提交的版本,查看 最新版本

// ==UserScript==
// @name         Swiftlnx.com Auto-Bypasser
// @namespace    http://tampermonkey.net/
// @version      17.2
// @description  ⚡ Auto-Bypass swiftlnx.com by @Fer3on_Mod
// @author       Fer3on_Mod
// @match        *://swiftlnx.com/*
// @match        *://yourdoctor.site/*
// @run-at       document-end
// @grant        GM_addStyle
// ==/UserScript==

(function () {
  "use strict";

  let stopScript = false;

  // ---------- Page Counter ----------
  let pageCounter = parseInt(localStorage.getItem("fer3on_pageCounter") || "0", 10);

  function incrementPage(siteName) {
    pageCounter++;
    localStorage.setItem("fer3on_pageCounter", pageCounter);
    updateHeader();
    logStep(`Page ${pageCounter} skipped → (${siteName})`);
  }

  function resetCounter() {
    pageCounter = 0;
    localStorage.setItem("fer3on_pageCounter", "0");
  }

  // ---------- Pop-up UI ----------
  const popup = document.createElement("div");
  popup.id = "fer3on-popup";
  popup.innerHTML = `
    <div class="popup-container">
      <div class="popup-header" id="fer3on-header">🚀 Fer3on_Mod Auto-Bypass | Page ${pageCounter}</div>
      <div class="popup-body">
        <p id="fer3on-status">⏳ Starting bypass...</p>
        <div class="progress">
          <div class="progress-bar" id="fer3on-progress"></div>
        </div>
        <div id="fer3on-log" class="log-box"></div>
        <hr>
        <p>👑 Made by <b>Fer3on_Mod</b></p>
        <p>📺 YouTube: <a href="https://youtube.com/@fer3on_mod" target="_blank">youtube.com/@fer3on_mod</a></p>
        <p>✈️ Telegram: <a href="https://t.me/Fer3on_Mod" target="_blank">@Fer3on_Mod</a></p>
      </div>
    </div>
  `;
  document.body.appendChild(popup);

  GM_addStyle(`
    #fer3on-popup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2147483647 !important;
    }
    #fer3on-popup .popup-container {
      background: #111;
      color: #0f0;
      padding: 20px 25px;
      border-radius: 14px;
      box-shadow: 0 0 25px rgba(0,255,0,0.4);
      font-family: Arial, sans-serif;
      max-width: 420px;
      text-align: center;
      animation: fadeIn 0.4s ease-in-out;
    }
    #fer3on-popup .popup-header {
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 12px;
      color: #0ff;
      text-shadow: 0 0 5px #0f0;
    }
    #fer3on-popup a { color: #0af; text-decoration: none; }
    #fer3on-popup a:hover { text-decoration: underline; }
    .progress {
      background: #333;
      border-radius: 10px;
      height: 20px;
      width: 100%;
      overflow: hidden;
      margin: 10px 0 15px;
    }
    .progress-bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #0f0, #0ff);
      text-align: center;
      color: #000;
      font-size: 12px;
      font-weight: bold;
      transition: width 0.3s ease;
    }
    .log-box {
      background: #000;
      border: 1px solid #0f0;
      border-radius: 6px;
      padding: 6px;
      font-size: 12px;
      max-height: 120px;
      overflow-y: auto;
      text-align: left;
    }
    .log-box p { margin: 2px 0; }
    .log-ok { color: #0f0; }
    .log-err { color: #f00; }
    @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
  `);

  function logStep(msg, type = "ok") {
    const logBox = document.getElementById("fer3on-log");
    if (logBox) {
      const p = document.createElement("p");
      p.textContent = msg;
      p.className = type === "err" ? "log-err" : "log-ok";
      logBox.appendChild(p);
      logBox.scrollTop = logBox.scrollHeight;
    }
    console.log("[Fer3on_Mod] " + msg);
  }

  function setLog(msg, progress = null) {
    const status = document.getElementById("fer3on-status");
    const bar = document.getElementById("fer3on-progress");
    if (status) status.textContent = msg;
    if (progress !== null && bar) {
      bar.style.width = progress + "%";
      bar.textContent = progress + "%";
    }
  }

  function updateHeader() {
    const header = document.getElementById("fer3on-header");
    if (header) header.textContent = `🚀 Fer3on_Mod Auto-Bypass | Page ${pageCounter}`;
  }

  function finishScript(msg = "✅ Bypassed") {
    setLog(msg, 100);
    stopScript = true;
    setTimeout(() => {
      popup.remove();
      resetCounter(); // reset after script fully ends
    }, 2500);
  }

  // ---------- Handlers ----------
  function handleYourDoctor() {
    setLog("🌍 yourdoctor.site detected...", 20);
    const btn = document.querySelector("button.btn-success, a.btn-success");
    if (btn) {
      btn.click();
      incrementPage("yourdoctor.site");
      finishScript("✅ yourdoctor.site skipped!");
    } else {
      logStep("❌ yourdoctor.site failed", "err");
      finishScript("❌ Failed");
    }
  }

  function handleSwiftLnx() {
    setLog("🌍 swiftlnx.com detected...", 20);

    const checkBtn = setInterval(() => {
      if (stopScript) return clearInterval(checkBtn);
      const btn = document.querySelector("a.get-link[href]:not(.disabled)");
      if (btn && btn.href && !btn.href.includes("void(0)")) {
        clearInterval(checkBtn);
        incrementPage("swiftlnx.com");
        setTimeout(() => {
          window.open(btn.href, "_self");
          finishScript("✅ swiftlnx.com skipped!");
        }, 800);
      }
    }, 300);
  }

  // ---------- Router ----------
  if (location.hostname.includes("yourdoctor.site")) {
    handleYourDoctor();
  } else if (location.hostname.includes("swiftlnx.com")) {
    handleSwiftLnx();
  }
})();