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

Pages: 1-

*whisper* 4chan wordfilter workaround script

Name: Anonymous 2007-01-28 13:53

Hay guys!

First off, I suck at javascript.

I was trying to write a Greasemonkey script that would take the text in the textbox and replace certain characters with unicode equivalents.

My problem lies in intercepting the submittal of the form. How do I do it?

I managed to find the tag with a xpath search, but I can't add a "onClick" action properly.

As fron payment, I offer a javascript array of possible replacements:

var replacements, regex, key;

replacements = {
    "A": "\u0410",
    "B": "\u0412",
    "C": "\u0421",
    "H": "\u041D",
    "I": "\u0406",
    "J": "\u0408",
    "M": "\u041C",
    "O": "\u041E",
    "P": "\u0420",
    "S": "\u0405",
    "T": "\u0422",
    "V": "\u0474",
    "Y": "\u04AE",

    "a": "\u0430",
    "c": "\u0441",
    "e": "\u0435",
    "h": "\u04BB",
    "i": "\u0456",
    "j": "\u0458",
    "l": "\u04C0",
    "o": "\u043E",
    "p": "\u0440",
    "s": "\u0455",
    "y": "\u0443",
    "v": "\u0475";
}
regex = {};
for (key in replacements) {
    regex[key] = new RegExp(key, 'g');
}

Name: Anonymous 2007-01-28 18:59 (sage)

I managed to find the tag with a xpath search, but I can't add a "onClick" action properly.
this doesn't work?
some_element.onclick=function(){
 while(Math.pow(Math.PI&Math.sqrt(Math.exp(Math.PI)),Math.cos(Math.PI))){
  alert("OH SHI-");
  arguments.callee();
 }
}

Name: Anonymous 2007-01-29 11:16

>>2
No, that didn't work at all.

Name: Anonymous 2007-01-29 12:02 (sage)

>>2
what did it do?

Name: Anonymous 2009-11-09 12:17

FoxReplace (addon), replaces stuff in the post box, if you can get a macro to cycle through a-z with the replace it'd be nice.

Name: PHPAdvocate !MARtiNys66 2009-11-09 12:39

window.addEventListener('submit', replacementFunction, true);

Name: Anonymous 2009-11-09 16:33

print 'Hello WOrkd'

Name: Anonymous 2009-11-09 17:39

wordfilter workaround
Fuck you!

Name: Anonymous 2009-11-09 17:42

damn /b/tards.
the best wordfilter workaround is to lurk boards that don't suck monkey anus.

Name: Anonymous 2009-11-09 17:43

>8
WORKA ROUND
WORKA WORKA RAWR

Name: Anonymous 2009-11-09 18:26

>>10
FAG
Back to /b/, please.

Name: Anonymous 2009-11-09 23:00

The only time you need a filter is when the boards get spammed with boxes or some other shit.

Name: Anonymous 2009-11-10 7:36

$("#form").submit(function() {
     $("#textarea").val("dicks");
});

Name: Anonymous 2010-12-09 13:17

Name: Anonymous 2011-02-04 13:55

Name: Sgt.Kabu�⛚kiman斢↝ 2012-05-28 22:05

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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