您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
removes annoying names from the leaderboard
// ==UserScript== // @name powerline.io remove annoying names // @run-at document-end // @namespace http://tampermonkey.net/ // @version 1.1 // @description removes annoying names from the leaderboard // @author You // @match https://powerline.io/ // @icon https://www.google.com/s2/favicons?sz=64&domain=powerline.io // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; console.log('running powerline script'); let headText = document.head.outerHTML; let bodyText = document.body.outerHTML; bodyText = bodyText.replace('function Ba(a){""==a&&(a="<Unnamed>");return a}', `function Ba(a) { if (a == "" || a.includes('\\ufdfd') || a.includes('\\ua9c5') || a.includes('\\u102a') || a.includes('\\u2e3b')) { a = "<Unnamed>"; } return a; }`); const html = document.createElement('html'); html.innerHTML += headText + bodyText; document.write(''); document.write('<!DOCTYPE html><!--powerline script html loaded-->' + html.outerHTML); document.close(); })();