/trollQuery

Black magic for Trolls

Primary LanguageCSSMIT LicenseMIT

trollQuery

Black magic for Trolls

Demo

Subtly overrides common jQuery functions. For example:

<h1>Important heading</h1>
<script>
    $('h1').text('Updating my important heading');
</script>

turns into this...

<h1>Poop Important heading</h1>

And this...

$('div').slideDown();

plays a slide whistle.

Supported functions

  • text( myText ): Prepends myText with 'Poop'
  • addClass( myClass ): Adds myClass and also a 'poop' class
  • removeClass( myClass ): Removes myClass and adds a 'poop' class
  • prepend( myStuff ): Prepends with myStuff + poop
  • append(): Appends with Poop + myStuff
  • show(), hide(), toggle(), slideUp(), slideDown(), slideToggle(): Plays a slide whistle noise

Attribution / License exceptions