您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This will show your estimated auto logout time and display a warning when the time drops below 30 minutes.
// ==UserScript== // @name Mturk Logout Time // @version 0.1 // @author Cristo // @description This will show your estimated auto logout time and display a warning when the time drops below 30 minutes. // @description Click on the "HITs available now" area on the top to show time remaining until logout. Format is in a "hours:minutes" countdown. // @description The top border changes green when time is below 30 minutes, yellow for 15 minutes and red for 5 minutes. // @description Timing is based off Amazon's word that logouts are every 12 hours. Results may vary. // @include https://www.mturk.com/mturk* // @include https://www.amazon.com/ap/signin?o* // @copyright 2012+, You // @namespace https://gf.qytechs.cn/users/1973 // ==/UserScript== if (document.getElementById("subtabs_and_searchbar")) { var number = timeMachine().replace(":",""); var topBar = document.getElementById("subtabs_and_searchbar"); if (number <= 5){ topBar.style.cssText = "border-top:#F03C0F 10px solid"; } else if (number <= 15) { topBar.style.cssText = "border-top:#D8F029 10px solid"; } else if (number <= 30) { topBar.style.cssText = "border-top:#1BDA13 10px solid"; }} if (document.getElementById("ap_header")) { var but = document.getElementById("signInSubmit-input"); but.addEventListener( "click", function () { GM_setValue("timeoflog", new Date().getTime()); } , false );} function timeMachine() { var now = new Date().getTime(); var then = GM_getValue("timeoflog"); var since = now - then; var timeRem = 4.32e+7 - since; var rawMins = Math.ceil(timeRem/60000); var hours = Math.floor(rawMins/60); var baseMins = rawMins%60; var redunMins = baseMins.toString(); var mins; if (redunMins.length < 2){ mins = "0" + redunMins; } else { mins = redunMins; } var results = hours + ":" + mins; return results; } if (document.getElementsByTagName("td")[7]) { var handle = document.getElementsByTagName("td")[7]; handle.addEventListener( "click", function () { var time = timeMachine(); var spany = handle.getElementsByTagName("span")[0]; var bany = handle.getElementsByTagName("b")[0]; var parts = spany.innerHTML.substring(75,88); bany.innerHTML = time; bany.style.textAlign = "center"; if (spany.innerHTML.indexOf("Until") == -1){ spany.innerHTML = spany.innerHTML.replace(parts, "Until Logout"); } spany.style.textAlign = "center"; } , false );}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址