您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the "Promote" button on Twitter
// ==UserScript== // @name Remove Twitter Promote Button // @namespace http://voilentmonkey.net/ // @version 0.1 // @description Removes the "Promote" button on Twitter // @author Razor7100 on Github // @match https://twitter.com/* // @grant none // ==/UserScript== function deleteButtons() { const buttons = document.querySelectorAll('.css-4rbku5.css-18t94o4.css-1dbjc4n.r-1niwhzg.r-sdzlij.r-1phboty.r-rs99b7.r-1loqt21.r-1s2bzr4.r-2yi16.r-1qi8awa.r-1ny4l3l.r-ymttw5.r-o7ynqc.r-6416eg.r-lrvibr'); buttons.forEach(button => { button.remove(); }); } // Attach the MutationObserver when the page is finished loading window.addEventListener('load', () => { // Select the node that will be observed for mutations const targetNode = document.body; // Options for the observer (which mutations to observe) const config = { attributes: false, childList: true, subtree: true }; // Create an observer instance linked to the callback function const observer = new MutationObserver((mutationsList, observer) => { deleteButtons(); }); // Start observing the target node for configured mutations observer.observe(targetNode, config); // Delete any buttons that are already in the DOM deleteButtons(); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址