Automatically reloads the watchlist/unread posts
当前为
// ==UserScript==
// @name Bitcointalk.org Autoreload
// @name:de Bitcointalk.org Autoreload
// @namespace https://greasyfork.org/en/scripts/19125-bitcointalk-org-autoreload/
// @version 0.63.3
// @iconURL
// @description Automatically reloads the watchlist/unread posts
// @description:de Automatischer reload der post seiten bei bitcointalk
// @author LsHallo
// @match https://bitcointalk.org/index.php?action=watchlist
// @match https://bitcointalk.org/index.php?action=unreadreplies
// ==/UserScript==
load();
function load() {
time = ~~(Math.random()*75953+105896);
console.log("Idle time: " + ~~(time/1000) + " seconds (" + ((time/1000).toFixed(0)/60).toFixed(2)+" minutes)");
setTimeout('location.reload()',time);
d = new Date();
if(d.getHours() < 10) Hours = "0"+d.getHours(); else Hours = d.getHours();
if(d.getMinutes() < 10) Minutes = "0"+d.getMinutes(); else Minutes = d.getMinutes();
if(d.getSeconds() < 10) Seconds = "0"+d.getSeconds(); else Seconds = d.getSeconds();
console.log("Last reload: " + Hours + ":" + Minutes + ":" + Seconds);
var x = document.getElementsByClassName("windowbg").length;
if(x > 0) {
document.title = (x/3) + " Unread Posts";
}
}