您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
none
// ==UserScript== // @name 洛谷口苗语(其实是空文本链接)翻译 // @namespace http://tampermonkey.net/ // @version 2024-12-24-2 // @description none // @author 928418 // @match https://www.luogu.com.cn/ // @icon https://www.google.com/s2/favicons?sz=64&domain=luogu.com.cn // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Your code here... setInterval(function awa() { var feeds = document.getElementsByClassName("feed-comment"); feeds.forEach((x) => { var links = x.getElementsByTagName("a"); links.forEach((x) => { if (!x.innerHTML.trim()) { x.outerHTML = "<p>[口苗语翻译:“" + decodeURI((new URL(x.href)).pathname.slice(1)) + "”]</p>"; } }); }); }, 100); })();