Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ignore necroposting [Greasemonkey]

Name: Anonymous 2011-01-06 18:53

Easy install: http://userscripts.org/scripts/show/40523


Code:
// ==UserScript==
// @name          /prog/ : Ignore necroposting
// @version       1.0
// @namespace     http://dis.4chan.org/read/prog/1/
// @description   Do not display threads older than 2008 on /prog/'s main page.
// @include       http://dis.4chan.org/prog/
// ==/UserScript==

var threads, thread;
threads = document.evaluate("//div[@class='border']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < threads.snapshotLength; i++) {
  thread = threads.snapshotItem(i);
  if (-1 != thread.childNodes[3].childNodes[3].childNodes[1].childNodes[1].textContent.search(/200[4-7]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]/g)) {
      thread.style.display = "none";
  }
}
// Doing it cleanly? Are you crazy? It'd take me, like, minutes.

Name: VIPPER 2011-01-07 5:17

Not VIP QUALITY.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List