您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides opponents' names and elo. Primarily designed for Live League games, but works in any mode.
// ==UserScript== // @name AWBW Live League Opponent Name Hider // @namespace https://awbw.amarriner.com/ // @version 1.14 // @description Hides opponents' names and elo. Primarily designed for Live League games, but works in any mode. // @icon https://awbw.amarriner.com/favicon.ico // @author lol // @match https://awbw.amarriner.com/game.php?games_id=* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const profile = document.querySelector('#profile-menu > span[title]'); if (!profile) return; const myName = profile.getAttribute('title').trim(); if (!myName) return; document.querySelectorAll('.player-username a[title]').forEach(link => { const playerName = link.getAttribute('title').trim(); if (!playerName || playerName === myName) return; const originalLink = link.cloneNode(true); const container = document.createElement('span'); container.textContent = '[Reveal Name]'; container.style.cursor = 'pointer'; container.style.fontWeight = 'bold'; container.style.textDecoration = 'underline'; container.addEventListener('mouseenter', () => { container.style.color = '#ccc'; }); container.addEventListener('mouseleave', () => { container.style.color = '#fff'; }); container.addEventListener('click', () => { container.replaceWith(originalLink); }); link.replaceWith(container); }); function hideEventName() { const eventText = document.querySelector('.event-screen .event-text.bold'); if (!eventText) return; const text = eventText.textContent.trim(); const prefix = "It's now "; const suffix = "'s turn"; if (text.startsWith(prefix) && text.endsWith(suffix)) { const name = text.slice(prefix.length, text.length - suffix.length).trim(); if (name !== myName) { eventText.textContent = `${prefix}???${suffix}`; } } } const eventScreen = document.querySelector('.event-screen'); if (eventScreen) { const observer = new MutationObserver(() => { const isVisible = getComputedStyle(eventScreen).display !== 'none'; if (isVisible) { hideEventName(); } }); observer.observe(eventScreen, { attributes: true, attributeFilter: ['style'] }); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址