您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
1/12/2025, 1:20:24 PM
// ==UserScript== // @name New script uol.com.br // @namespace Violentmonkey Scripts // @match https://www.uol.com.br/* // @grant none // @version 1.0 // @author - // @description 1/12/2025, 1:20:24 PM // @name pt-BR // ==/UserScript== (function waitForButtonAndClick() { const observer = new MutationObserver((mutations, obs) => { const button = document.querySelector('button[aria-label="Fechar"]'); if (button) { console.log('Button found:', button); button.click(); // Click the button console.log('Button clicked!'); obs.disconnect(); // Stop observing once the button is clicked } }); // Start observing the document for changes observer.observe(document.body, { childList: true, // Observe direct children subtree: true // Observe all descendants }); console.log('Observer started, waiting for the button...'); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址