您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically decode Ankama's hexadecimal URL links and redirect immediately.
// ==UserScript== // @name Auto Decode and Redirect Ankama Links // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically decode Ankama's hexadecimal URL links and redirect immediately. // @match *://go.ankama.com/es/check* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Extract the 's' parameter from the URL const params = new URLSearchParams(window.location.search); const hexString = params.get('s'); if (hexString) { try { // Decode hex to JSON const decodedString = decodeURIComponent(hexString.match(/.{1,2}/g).map(byte => String.fromCharCode(parseInt(byte, 16))).join('')); const jsonData = JSON.parse(decodedString); // Redirect if 'url' field exists if (jsonData.url) { window.location.href = jsonData.url; } } catch (e) { console.error("Failed to decode or redirect:", e); } } })();