您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
2024/3/19 11:23:41
当前为
// ==UserScript== // @name 自定义网页标题 // @namespace Violentmonkey Scripts // @match https://m.ithome.com/* // @match https://web.telegram.org/* // @match https://bbs.nga.cn/* // @match https://bbs.hupu.com/* // @grant none // @version 1.4 // @author hoorn // @icon https://s2.loli.net/2024/05/29/m5LcD7ZblIrQHXV.png // @description 2024/3/19 11:23:41 // @license GPL-3.0 License // ==/UserScript== (function () { 'use strict'; var currentHost = window.location.host; // 获取页面标题元素 var pageTitle = document.querySelector('title'); // 修改标题文本 pageTitle.textContent = '.'; //hupu if (currentHost.startsWith('bbs.hupu.com')) { var hupuLink = document.querySelector('link[rel="shortcut icon"]'); hupuLink.href = 'https://s2.loli.net/2024/05/29/m5LcD7ZblIrQHXV.png'; } else { var linkElement = document.querySelector('link[rel="icon"]'); linkElement.href = 'https://s2.loli.net/2024/05/29/m5LcD7ZblIrQHXV.png'; var favicon = document.querySelector('link[rel="alternate icon"]'); favicon.href = 'https://s2.loli.net/2024/05/29/m5LcD7ZblIrQHXV.png'; } })();