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

Post Code

Name: Anonymous 2011-03-04 21:33

One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.

Name: Anonymous 2011-03-20 9:07

// ==UserScript==
// @name    Swastika Hider
// @description    Hide Unicode swastikas on world4ch.
// @match    http://dis.4chan.org/*;
// @include    http://dis.4chan.org/*;
// ==/UserScript==
posts = document.getElementsByClassName('post');

for (i = 0; i < posts.length; i++) {
  post = posts[i];
  content = post.childNodes[3].innerHTML;
  if (content.indexOf("\u2591") != -1)
    post.style.display = "none";
}

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