您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
F95zone threads pages - HTML <title> rearrangement - moving labels from the beginning of the title to after the developer name.
当前为
// ==UserScript== // @name F95zone > threads > HTML <title> rearrangement // @namespace Violentmonkey Scripts // @match *://f95zone.to/threads/* // @grant none // @version 0.1.12 // #timestamp 2025-03-28 18:39:11 // @author BtDt // @license MIT // @description F95zone threads pages - HTML <title> rearrangement - moving labels from the beginning of the title to after the developer name. // ==/UserScript== (function() { 'use strict'; function XPathEvalAndIter( xpath, ctxNode, callback = (subnode) => {}) { const result = document.evaluate( xpath, ctxNode, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); let node = result.iterateNext(); while (node) { callback(node); node = result.iterateNext(); } } let title = ''; let labels = ''; function ProcessTitle(subnode) { XPathEvalAndIter( "text()", subnode, (subnode) => { title += subnode.textContent; }); XPathEvalAndIter( "a[@class='labelLink']/span", subnode, (subnode) => { labels += ` #${subnode.textContent}`; }); } XPathEvalAndIter( "//h1[@class='p-title-value']", document, ProcessTitle); document.title = `${title} ${labels} | F95zone`; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址