Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Hey, Mike. I'm liking the script. Since there's no way to contact you directly through the site, I thought I'd put an idea for a script into your head:
Possible? (I'm emailable at gmail, or on Fark as George_Spelvin ) |
|
|
I hope you don't mind, but as an avid Fark scripter and one who does not like Farky's compatibility being broken with FireFox 3.0rc2 I was really glad to stumble upon this script. I've been trying to add as many Farky features that Fark.com doesn't support into my own personal Fark modifying script, so as to be able to remove Farky from FireFox (it is a memory hog). This script is awesome, but the green bolding was a little too much for me :) I went and modified it a bit, feel free to pick and choose if you want to use any of it:
// Get the last viewed headline
var lastHeadline = GM_getValue("lastHeadline" + location.href, "It's not news, it's fark.com!");
// Get all stories currently on the main page....
var allHeadlines = document.evaluate('//span[@class="headline"]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);;
// Loop through all headlines, embolden the new ones.
for(i=0; (i < allHeadlines.snapshotLength) && (allHeadlines.snapshotItem(i).innerHTML != lastHeadline); i++){
comments = allHeadlines.snapshotItem(i).parentNode.parentNode.getElementsByTagName("a").item(1);
comments.innerHTML += " <b><font color=\"red\">*</font></b>";
}
// Set lastHeadline for next time
GM_setValue("lastHeadline" + location.href, allHeadlines.snapshotItem(0).innerHTML);
|