您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace Google’s SVG logo with "Myra's birthday" text on homepage using correct class selector (lnXdpd)
// ==UserScript== // @name Google SVG Logo Replacer // @namespace http://tampermonkey.net/ // @version 1.3 // @description Replace Google’s SVG logo with "Myra's birthday" text on homepage using correct class selector (lnXdpd) // @match https://www.google.com/ // @grant none // ==/UserScript== (function() { 'use strict'; const tryReplaceSVG = () => { const svgLogo = document.querySelector('svg.lnXdpd'); if (svgLogo) { const textLogo = document.createElement('div'); textLogo.textContent = "Myra's birthday"; textLogo.style.fontSize = "36px"; textLogo.style.fontWeight = "bold"; textLogo.style.fontFamily = "Arial, sans-serif"; textLogo.style.color = "#4285F4"; textLogo.style.display = "inline-block"; svgLogo.parentNode.replaceChild(textLogo, svgLogo); return true; } return false; }; const observer = new MutationObserver(() => { if (tryReplaceSVG()) observer.disconnect(); }); observer.observe(document.body, { childList: true, subtree: true }); window.addEventListener('load', () => { setTimeout(tryReplaceSVG, 1000); }); })();