// ==UserScript== // @name 影视网页标题清理 // @version 2 // @description 清除影视网页标题中“集”字后面的字符 // @author ChatGPT // @match *://*/* // @run-at document-end // @grant none // @namespace https://greasyfork.org/users/452911 // @downloadURL none // ==/UserScript== if (document.title.includes("集")) { const pageTitle = document.title; const newTitle = pageTitle.replace(/[《》]/g, "").replace(/集(?!$).*/, "集"); document.title = newTitle; }