您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Krypta
// ==UserScript== // @name PRIVATE SERVER KRYPTA // @namespace // @version 1.5 // @description Krypta // @author Krypta // @match https://kogama.com.br/games/play/*/* // @grant none // @namespace https://greasyfork.org/users/1306116 // ==/UserScript== (function() { 'use strict'; function getQueryParam(param) { const urlParams = new URLSearchParams(window.location.search); return urlParams.get(param); } let langValue = getQueryParam('lang') || 'pt_BR'; const xhrPrototype = XMLHttpRequest.prototype; const originalOpenFunction = xhrPrototype.open; xhrPrototype.open = function() { const url = arguments[1]; if (url.includes("lang=")) { const newUrl = url.replace(/(lang=)[^&]*/, `$1${langValue}`); arguments[1] = newUrl; console.log("URL alterada para 'lang=" + langValue + "'"); } originalOpenFunction.apply(this, arguments); }; })();