您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bypasses Swift keysystem (works alongside kxBypass Shortlinks Bypasser)
当前为
- // ==UserScript==
- // @name kxBypass Executor Bypass [only Swift]
- // @namespace https://discord.gg/pqEBSTqdxV
- // @version 1.0
- // @description Bypasses Swift keysystem (works alongside kxBypass Shortlinks Bypasser)
- // @author awaitlol.
- // @match https://key.getswift.gg/ks/checkpoint/*
- // ==/UserScript==
- (function () {
- 'use strict';
- setTimeout(() => {
- ['click', 'mousedown', 'mouseup'].forEach(evt => {
- window.addEventListener(evt, e => e.stopPropagation(), true);
- });
- document.body.onclick = null;
- document.documentElement.onclick = null;
- const captchaWidget = document.querySelector('.captcha-area');
- if (!captchaWidget) {
- console.error('⚠️ CAPTCHA area not found.');
- return;
- }
- const overlay = document.createElement('div');
- overlay.style.position = 'fixed';
- overlay.style.top = '0';
- overlay.style.left = '0';
- overlay.style.width = '100vw';
- overlay.style.height = '100vh';
- overlay.style.backgroundColor = '#000c';
- overlay.style.display = 'flex';
- overlay.style.alignItems = 'center';
- overlay.style.justifyContent = 'center';
- overlay.style.zIndex = '999999';
- overlay.appendChild(captchaWidget);
- const keepSet = new Set();
- let el = captchaWidget;
- while (el) {
- keepSet.add(el);
- el = el.parentElement;
- }
- Array.from(document.body.children).forEach(child => {
- if (!keepSet.has(child)) {
- child.remove();
- }
- });
- document.body.appendChild(overlay);
- const checkHCaptchaLoaded = setInterval(() => {
- if (window.hcaptcha) {
- clearInterval(checkHCaptchaLoaded);
- startCaptchaCheck();
- }
- }, 100);
- function startCaptchaCheck() {
- const currentUrl = window.location.href;
- const interval = setInterval(() => {
- try {
- const responseToken = hcaptcha.getResponse();
- if (responseToken) {
- console.log('✅ CAPTCHA solved! Token:', responseToken);
- clearInterval(interval);
- const xsrf = document.cookie
- .split('; ')
- .find(c => c.startsWith('_xsrf='))
- ?.split('=')[1] || '';
- const formData = new URLSearchParams();
- formData.append('_xsrf', xsrf);
- formData.append('g-recaptcha-response', responseToken);
- formData.append('h-captcha-response', responseToken);
- const form = document.createElement('form');
- form.method = 'POST';
- form.action = currentUrl;
- form.style.display = 'none';
- for (const [key, val] of formData.entries()) {
- const input = document.createElement('input');
- input.type = 'hidden';
- input.name = key;
- input.value = val;
- form.appendChild(input);
- }
- document.body.appendChild(form);
- form.submit();
- }
- } catch (e) {
- console.error('Error checking hCaptcha:', e);
- clearInterval(interval);
- }
- }, 100);
- }
- }, 100);
- })();