Skip to content

About

Black magic for Trolls

Resources

Stars

5 stars

Watchers

2 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

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

About

Black magic for Trolls

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages