// ==UserScript==
// @name ILXBoardBlackList
// @namespace
// @description Removes Boards from SiteNewAnswers page
// @include http://www.ilxor.com/ILX/SiteNewAnswersControllerServlet
// ==/UserScript==// OK, TO MODIFY WHICH BOARDS ARE DISPLAYED *EITHER*
// define DO_NOT_WANT with a list of boards to remove
// OR
// define WANT with a list of boards you want to see
// ONE OR THE OTHER, NOT BOTH
// Examples
// var WANT = ["40", "55"]; - view ILE and ILB *only*
// OR
// var DO_NOT_WANT = ["41", "53"]; - see everything *except* ILM and ILBaseball
//var DO_NOT_WANT = ["41", "60"];
var WANT = ["40"];
var answers;
// <div class='thread'><li><a href='/ILX/ThreadSelectedControllerServlet?boardid=41&threadid=55639#unread'>Rolling Teenpop 2007 Thread</a> [Started by Frank Kogan (Frank Kogan), last updated 13 seconds ago] (<a href="/ILX/NewAnswersControllerServlet?boardid=41">I Love Music</a>) <em>23 new answers</em></li></div>
// get all answers
answers = document.evaluate("//div[@class='thread']/li",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
var re = /boardid=(\d+)/;
//alert("Posts: " + answers.snapshotLength); // acd DEBUG
if (answers.snapshotLength != 0) {
//alert("Posts: " + answers.snapshotLength); // acd DEBUG
for (var i = 0; i < answers.snapshotLength ; i++) {
var thisLink = answers.snapshotItem(i).firstChild;
//alert("ThisLink: " + thisLink); // acd DEBUG
var url = thisLink.search;
//alert("Href: " + url); // acd DEBUG
matches = url.match(re);
if (matches) {
boardid = matches[1];
//alert(boardid);
if ((typeof WANT != "undefined" && WANT.indexOf(boardid) == -1) || (typeof DO_NOT_WANT != "undefined" && DO_NOT_WANT.indexOf(boardid) != -1)) {
//alert("Blocking " + boardid);
// make board invisible
div = thisLink.parentNode.parentNode;
div.setAttribute('style','display:none');
}
}
}
}
― TOMBOT, Friday, 8 June 2007 15:30 (eighteen years ago)
btw I just asked for it koogs actually punched it together, it was from the KILLFILE 2.0 thread
― TOMBOT, Friday, 8 June 2007 15:35 (eighteen years ago)
let's start a thread with a secret code title and talk about how stuff sucks on the other boards and whose jokes are the worst
― TOMBOT, Friday, 8 June 2007 15:52 (eighteen years ago)
well thx then koogs
grease monkey will likely shralp a dik for you dude is kinda slut does whatever aka
re: secret code ttile - yah can we call it shralp a dik or is that too alluring
― jhøshea, Friday, 8 June 2007 16:04 (eighteen years ago)
maybe we should pick something like a title from ILM nobody would ever click on, say, "new register album"
― TOMBOT, Friday, 8 June 2007 16:06 (eighteen years ago)
THEN IT IS GENIUS AND I PRONOUNCE IT AWESOME. Feels good to be on the cutting edge for once!
― J, Friday, 8 June 2007 16:41 (eighteen years ago)
five months pass...
three months pass...
q: is SITE NEW ANSWERS like being the trench coat haxxors from THE MATRIX
― max, Friday, 7 March 2008 06:17 (seventeen years ago)