Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.13 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.13 KB

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