Thread: Noob Zapper
View Single Post
Old Aug 19th, 2007, 4:49 PM   #1
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Noob Zapper

I decided, out of boredom, to make our lives easier.

Periodically, one comes across posts similar to the following:

#include <iostream>

using namespaces;; //WTF? this isnt in mah book

int main() {
while (1 + 1 > -2487928746) {
cin >> cout << "hallo wurld!!1one";;

}
}

}

i dunno what's wrong with dis but i have an exam tomorrow kthx


Yes, people need to learn to use code tags, but it's a serious waste of time to nag them and check the thread again later.

I wrote a GreaseMonkey script to automagically wrap stuff in code tags that probably should be. The code kind of looks like a bunch of duct-tape, which it is, but it works reasonably well for the poorly tagged posts that I've tried it on (which were kindly annotated with flaming and thus easy to search for).

You need GreaseMonkey installed in a compatible browser to use the script.

Get the script here.

Make sure the little monkey icon is smiling (click to toggle GreaseMonkey on and off) and browse around for naked code.
Subtle Hint: Refresh this page

I'll link some good test posts later.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote