您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script hides the annoying popups (the warning-disconnection popu) that are shown in the web page.
// ==UserScript== // @name FinecoBank.com: Hide Annoying popups (the warning-disconnection popup) // @name:it FinecoBank.com: Nasconde i popup fastidiosi (il popup di avviso disconnessione) // @description This script hides the annoying popups (the warning-disconnection popu) that are shown in the web page. // @description:it Questo script nasconde i popup fastidiosi (il popup di avviso disconnessione) che vengono visualizzati nella pagina web. // @match https://finecobank.com/* // @grant none // @require https://update.gf.qytechs.cn/scripts/535551/1586801/HideAnnoyingPopupsLib.js // @version 1.0.2 // @author Cyrano68 // @license MIT // @namespace https://gf.qytechs.cn/users/788550 // ==/UserScript== (function() { "use strict"; const haplib = window.HideAnnoyingPopupsLib; const myVersion = GM_info.script.version; haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: HELLO! Loading script (version: ${myVersion})...`); const currUrl = window.location.href; haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: currUrl='${currUrl}'`); //document.addEventListener("DOMContentLoaded", onDOMContentLoaded); //window.addEventListener("load", onWindowLoaded); const buttonText = "RIMANI CONNESSO"; const clickDelay_s = 2; //const clickDelay_s = 0; function onMutatedNode(mutation, foundNode) { // This function must return a boolean value: stopMutationProcessing. When it is TRUE the current mutation will not be further processed. // IMPORTANT: In this case we will always return TRUE (otherwise the "haplib" will hide every matching button). // haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: onMutatedNode - BEGIN - foundNode.textContent=${foundNode.textContent}`); let stopMutationProcessing = false; if (foundNode.textContent === buttonText) { // The popup will appear for "clickDelay_s" seconds. Then the script will click "programmatically" on the button. if (clickDelay_s > 0) { const clickDelay_ms = clickDelay_s * 1e3; setTimeout(() => { haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: onMutatedNode - clicking on button programmatically`); foundNode.click(); }, clickDelay_ms); } else { haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: onMutatedNode - clicking on button programmatically`); foundNode.click(); } } else { haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: onMutatedNode - Button IGNORED`); } stopMutationProcessing = true; haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: onMutatedNode - END - stopMutationProcessing=${stopMutationProcessing}`); return stopMutationProcessing; } haplib.consoleLog(`==> FinecoBank_com_HideAnnoyingPopups: Using library 'HideAnnoyingPopupsLib' (version: ${haplib.getVersion()})`); const mutationObserverConfig = {subtree: true, childList: true}; const mutatedNodesConfig = {selectors: ["button.btn.btn-primary"], onMutatedNode: onMutatedNode}; haplib.configure(mutationObserverConfig, mutatedNodesConfig); haplib.consoleLog("==> FinecoBank_com_HideAnnoyingPopups: Script loaded"); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址