您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Keep TaxACT session alive.
// ==UserScript== // @name TaxACT.com keep-alive // @namespace http://tampermonkey.net/ // @version 2025-04-13 // @description Keep TaxACT session alive. // @author You // @match https://www.taxact.com/*timeout_warning* // @exclude https://www.taxact.com/taxmanager/* // @icon https://www.google.com/s2/favicons?sz=64&domain=taxact.com // @require https://code.jquery.com/jquery-3.7.1.min.js#sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo= // @license MIT // ==/UserScript== (function() { 'use strict'; var scriptName = "mainLoopKeepAlive"; console.log(scriptName, "Starting for URL ", location.href); if (typeof(window[scriptName]) !== "undefined") { console.log(scriptName, "Running a 2nd time... abort."); return; } var keepAliveCheck = function() { return $("h1:contains('Do you want to continue using TaxAct Online?')").length > 0; }; var keepAliveFn = function() { console.log(scriptName, "Clicking continue"); $("button:contains('Continue')").click(); }; var callPageFn = function(page) { setTimeout(function() { page.fn(); }, 300 + (500 * Math.random())); }; var pages = { keepAlive: { check: keepAliveCheck, fn: keepAliveFn } }; var currentPage = undefined; console.log(scriptName, "Starting main loop..."); window[scriptName] = window.setInterval(function() { if (document.readyState !== "complete") { return; } // console.log(scriptName, "current page:", currentPage, "; title: ", title); for (var pageName in pages) { if (currentPage === pageName) { continue; } var page = pages[pageName]; if (page.check()) { console.log(scriptName, "url ", location.href, " from page ", currentPage, " to ", pageName); currentPage = pageName; callPageFn(page); } } }, 200); })();