您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides beauty ratings for Logic Masters Germany puzzles
// ==UserScript== // @name Hide beauty ratings on LMD // @version 1.0.1 // @description Hides beauty ratings for Logic Masters Germany puzzles // @author SudokuFan // @match https://logic-masters.de/* // @match https://logic-masters.de/*.* // @icon https://www.google.com/s2/favicons?sz=64&domain=logic-masters.de // @grant none // @run-at document-end // @license GNU GPLv3 // @namespace https://greasyfork.org/users/1457017 // ==/UserScript== // // @match https://logic-masters.de/Raetselportal/* // // @match https://logic-masters.de/Raetselportal/*.* (function() { 'use strict'; function isRating(elem) { const words = elem.innerHTML.split(" ") if (words.length != 2) { return false } if (words[1] != "%") { return false } return !isNaN(words[0]) } const spans = document.querySelectorAll("span") for (const span of spans) { if (isRating(span)) { span.innerHTML = "(beauty rating hidden)" span.title = "(description of beauty rating hidden)" console.log("beauty rating hidden:", span) } else { console.log("not a beauty rating: ", span) } } document.querySelector("html").classList.add("script_loaded") console.log("beauty ratings hidden") })();