I updated the page size greasemonkey script with one that replaces the Dr. Tron/Slicker/Slacker links with the page size
|
// ==UserScript==
// @name HSX Ticker Talk Info
// @namespace hsx
// @description Shows forum page size in bytes
// @include http://talk.hsx.com/*
// @exclude http://talk.hsx.com/*/post*
// ==/UserScript==
// Start
(function() {
// check page size and find insert location
var pageSizeStr = "Page size: " + document.documentElement.innerHTML.length;
// var displayLocation = document.evaluate("//td[@width='1'][@height='10']", document, null, // XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
var displayLocation = document.evaluate("//a[@href='/drtron/']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
var timeTrNode = displayLocation.snapshotItem(0).parentNode;
timeTrNode.innerHTML = pageSizeStr;
///// retrieve and display time... /////////////////////////////////////
GM_xmlhttpRequest({
method: 'GET',
url: 'http://tycho.usno.navy.mil/cgi-bin/timer.pl',
onload: function(responseDetails) {
var bigstr = new String(responseDetails.responseText);
var position = bigstr.indexOf('EDT');
if(position < 0) position = bigstr.indexOf('EST');
var timestr = bigstr.substr(position-12,15);
document.getElementById("timeSize").innerHTML = "" + timestr + "" + pageSizeStr;
}
});
///// ...remove this block to eliminate time ///////////////////////////
})();
// End
also change Firefox to include the slackertalk URLs
|
Responses:
|