您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Since the site admin won't take the advantage.
// ==UserScript== // @name xivanalysis zh action // @namespace https://xivanalysis.com/ // @version 0.3 // @description Since the site admin won't take the advantage. // @author Bluefissure // @match https://xivanalysis.com/* // @require http://cdn.bootcss.com/jquery/3.1.0/jquery.min.js // @require https://unpkg.com/xhook@latest/dist/xhook.min.js // @grant none // ==/UserScript== (function() { 'use strict'; xhook.before(function(request) { if(typeof request.url === 'string' && $("[class^='I18nMenu-module_container']").children().first()[0].childNodes[1].textContent === "简体中文"){ request.url = request.url.replace("https://xivapi.com", "https://cafemaker.wakingsands.com").replace(/language=../,"language=zh"); } }); })();