您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Plugin allows to join HamsterKombat via PC and prints it's authorization token
// ==UserScript== // @name HamsterKombat PC bypass // @name:ru HamsterKombat PC обход // @namespace http://tampermonkey.net/ // @version 1.5 // @match *://*/* // @author swat1x // @description Plugin allows to join HamsterKombat via PC and prints it's authorization token // @description:ru Плагин позволяет зайти в HamsterKombat через ПК и вывести в консоль свой токен авторизации // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=hamsterkombat.io // @grant none // ==/UserScript== (function () { 'use strict'; if (location.hostname === 'hamsterkombatgame.io') { const original_indexOf = Array.prototype.indexOf Array.prototype.indexOf = function (...args) { if (JSON.stringify(this) === JSON.stringify(["android", "android_x", "ios"])) { setTimeout(() => { Array.prototype.indexOf = original_indexOf }) return 0; } return original_indexOf.apply(this, args) } var fetchedToken; const originalFetch = window.fetch; window.fetch = function (input, init) { if (init && init.method && init.method.toLowerCase() === 'post') { if (init.headers.Authorization && !fetchedToken && init.baseURL === 'https://api.hamsterkombatgame.io') { fetchedToken = init.headers.Authorization console.log("Copy it -> " + fetchedToken.split("Bearer ")[1]) } } return originalFetch.apply(this, arguments); }; } })();