THBwiki强制使用InPageEdit工具 而不需要skipcaptcha权限
// ==UserScript== // @name THBwiki IPE // @namespace THBwiki IPE // @supportURL https://greasyfork.org/zh-CN/scripts/520799 // @version 1.1 // @description THBwiki强制使用InPageEdit工具 而不需要skipcaptcha权限 // @author ? // @license GPL 3.0 // @match thwiki.cc/* // ==/UserScript== !(function() { // RLQ是MediaWiki保存异步执行函数的数组 window.RLQ = RLQ || []; RLQ.push(() => { // 等待jQuery加载完毕 var _count = 0; var _interval = setInterval(() => { _count++; if (typeof jQuery !== "undefined") { // jQuery加载完毕 clearInterval(_interval); // 防止网站并不是MediaWiki时报错 try { mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit') } catch (e) {} } else if (_count > 30 * 5) { // 加载超时 clearInterval(_interval); } }, 200); }); })();