您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the expired membership message from elements with class name "easyscholar-\d easyscholar-ranking"
// ==UserScript== // @name Remove Expired Membership Message From EasyScholar // @namespace ToughScholar // @version 1.0 // @description Removes the expired membership message from elements with class name "easyscholar-\d easyscholar-ranking" // @match https://scholar.google.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to remove the expired membership message function removeExpiredMembershipMessage(element) { const title = element.getAttribute('title'); const newTitle = title.replace('您的会员已经到期,现在续费低至1.87元/月起', ''); element.setAttribute('title', newTitle); } // MutationObserver callback function function mutationCallback(mutationsList, observer) { for (let mutation of mutationsList) { if (mutation.type === 'childList') { // Loop through added nodes for (let node of mutation.addedNodes) { if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains('easyscholar-ranking')) { // Check if the class name matches the pattern easyscholar-\d const classList = Array.from(node.classList); const regex = /^easyscholar-\d$/; const matches = classList.filter(className => regex.test(className)); if (matches.length > 0) { removeExpiredMembershipMessage(node); } } } } } } // Create a new MutationObserver const observer = new MutationObserver(mutationCallback); // Start observing the document for changes observer.observe(document.documentElement, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址