Fark New Stories

By serial_crusher Last update Jul 8, 2008 — Installed 283 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
xanderificus User

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:
Fark sans Blender. Change the 'Music' link to redirect only to the frame containing Fark stuff. Exclude the 'Katy Perry' ads and crap.

Possible? (I'm emailable at gmail, or on Fark as George_Spelvin )

 
Smiths Scriptwright

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);

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel