Created
May 20, 2014 13:10
-
-
Save joates/7b5dd747ffab31b84063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function (d) { | |
Drupal.behaviors.noThanksIllUseJavascript = { | |
attach: function (context, settings) { | |
// initialize | |
while(d.body.firstChild) { | |
d.body.removeChild(d.body.firstChild) | |
} | |
// your javascript code here.. | |
//console.log('settings:', settings) | |
} | |
} | |
})(document) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DON'T USE THIS
it's just a joke.. it destroys all the DOM children that Drupal created (clears the page ;-)