Created
March 14, 2014 15:09
-
-
Save seutje/9549554 to your computer and use it in GitHub Desktop.
gremlins.js bookmarklet
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 (e, a, h, f, c, b, d) { | |
c = a.createElement("script"); | |
c.type = "text/javascript"; | |
c.src = "https://rawgithub.com/marmelab/gremlins.js/master/gremlins.min.js"; | |
c.onload = c.onreadystatechange = function () { | |
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) { | |
h(); | |
f(c).remove() | |
} | |
}; | |
a.documentElement.childNodes[0].appendChild(c); | |
})(window, document, function () { gremlins && gremlins.createHorde().unleash(); }); |
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
javascript:(function(e,a,h,f,c,b,d){c=a.createElement("script");c.type="text/javascript";c.src="https://rawgithub.com/marmelab/gremlins.js/master/gremlins.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h();f(c).remove()}};a.documentElement.childNodes[0].appendChild(c);})(window,document,function(){gremlins&&gremlins.createHorde().unleash();}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Neat, I didn't think of that use-case, thanks!
I'll see if I can roll it up in a conditional.