您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2025/6/23 10:46:16
// ==UserScript== // @name 飞牛浏览器标题修改 // @version 1.0.4 // @namespace https://github.com/g0ngjie/tkscript/fnos/index.js // @match *://*.5ddd.com/* // @match *://*.fnos.net/* // @match *://fn.*.com/* // @grant none // @author Gj // @license MIT License // @description 2025/6/23 10:46:16 // ==/UserScript== (function () { 'use strict'; const rTitle = '百度一下' const rIco = "https://www.baidu.com/favicon.ico"; let favicon = document.querySelector('link[rel="icon"]'); if (!favicon) { favicon = document.createElement('link'); favicon.rel = 'icon'; document.head.appendChild(favicon); } favicon.href = rIco; const targetNode = document.querySelector('title'); const observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { console.log('Title changed to:', mutation.target.textContent); if (mutation.target.textContent != rTitle) document.title = rTitle }); }); const config = { subtree: true, characterData: true, childList: true }; if (targetNode) observer.observe(targetNode, config); }());