If you copy/paste this post into a new greasemonkey script, it should activate a killfile for this site
|
/*=====================================================================================*\
| HSX Ticker Talk Killfile v0.81 |
| GreaseMonkey Script for Hollywood Stock Exchange |
| 2006-2008 Eduardo Zepeda |
| This script adds a basic killfile to HSX forums. Click on the X by any author's |
| name to make them disappear until you may want them back. It began as a |
| modification of the Google Groups killfile by Damian Penney, which he descibed as a |
| modification of the Metafilter killfile script written by Mystyk, with a bit of |
| jiggery pokery applied. Version .80 adds keyword filtering. |
\*=====================================================================================*/
// ==UserScript==
// @name SlackerTalk Killfile
// @description Filter posts on Slackertalk forums
// @include http://www.slackertalk.com/*
// ==/UserScript==
// Start
(function() {
function manageKillFile() {
var killDiv = document.getElementById("killList");
killDiv.style.visibility = (killDiv.style.visibility == "visible" ? "hidden" : "visible")
}
function showAddWord() {
var addDiv = document.getElementById("addWord");
manageKillFile();
addDiv.style.visibility = "visible";
document.getElementById("thisText").focus();
}
function closeAddWord() {
var addDiv = document.getElementById("addWord");
var thisWord=document.getElementById("thisText").value.toLowerCase();
if (thisWord.length > 0) killFileSet(thisWord,'word');
addDiv.style.visibility = "hidden";
manageKillFile();
}
function killFileRemove(idWord,mode) {
var splitCh = String.fromCharCode(255);
var data = "";
var list = new Array();
var newList = new Array();
if (mode == "id")
{ data = unescape(GM_getValue("HSXKillFile", "-----")); }
else { data = unescape(GM_getValue("HSXFilter", "-----")); }
list = data.split(splitCh);
for(var j=0; j -1)
{
killFileSet(pullParam(tempstr,1),pullParam(tempstr,2));
quash = true;
}
if(tempstr.indexOf('killFileRemove') > -1)
{
killFileRemove(pullParam(tempstr,1),pullParam(tempstr,2));
quash = true;
}
if(event.target == "javascript:manageKillFile();")
{
manageKillFile();
quash = true;
}
if(event.target == "javascript:showAddWord();")
{
showAddWord();
quash = true;
}
if(event.target == "javascript:closeAddWord();")
{
closeAddWord();
quash = true;
}
if(quash == true)
{
//quash actions of the javascript links
//while clicks on other, normal links pass through
event.stopPropagation();
event.preventDefault();
}
}, true);
function HSXKillFile_Run(){
var splitCh = String.fromCharCode(255);
var data = "";
var killList = new Array();
var filterList = new Array();
var removeCount = 0; //total
var killtally = new Array(); //per user match
var filtertally = new Array(); //per word match
// retrieve list of killfiled users
data = unescape(GM_getValue("HSXKillFile", "-----"));
killList = data.split(splitCh);
// retrieve list of filtered words
data = unescape(GM_getValue("HSXFilter", "-----"));
filterList = data.split(splitCh);
// initialize tally arrays
for(var j=0; j
|
Responses:
|