By Rolando Garza
—
Last update
Feb 19, 2007
—
Installed
164 times.
// ==UserScript==
// @name FARK.sortThreads()
// @namespace http://rolandog.com/
// @description Sorts Fark threads by the number of comments, in a descending order. Written by Rolando Garza <rolandog@gmail.com>. This script is provided to you under the terms of the GNU GPL: http://www.gnu.org/licenses/gpl.txt.
// @include http://www.fark.com/
// @include http://www.fark.com/FarkParty.html
// @include http://www.fark.com/LinkVote.html
// @include http://www.fark.com/combined.html
// @include http://www.fark.com/entertainment/
// @include http://www.fark.com/index-sfw.html
// @include http://www.fark.com/politics/
// @include http://www.fark.com/publicity/
// @include http://www.fark.com/sports/
// @include http://www.fark.com/tech/
// @include http://www.fark.com/video/
// @include http://www.foobies.com/
// @include http://www.totalfark.com/
// @include http://www.totalfark.com/Commented.html
// @include http://www.totalfark.com/LinkVote.html
// @include http://www.totalfark.com/TotalFark.html
// @include http://www.totalfark.com/index-all.html
// @include http://www.totalfark.com/index-sfw.html
// ==/UserScript==
var FARK={
//http://ejohn.org/projects/flexible-javascript-events/
addEvent:function(obj,type,fn){
if(obj.attachEvent){
obj['e'+type+fn]=fn;
obj[type+fn]=function(){obj['e'+type+fn](window.event);};
obj.attachEvent('on'+type,obj[type+fn]);
}
else{obj.addEventListener(type,fn,false);}
}
};
FARK.addEvent(window,"load",function(){
var o=document.createElement("script");
o.type="text/javascript";
o.src="http://rolandog.googlepages.com/FARK.js";
document.body.appendChild(o);
});