Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Created August 3, 2010 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n3dst4/506059 to your computer and use it in GitHub Desktop.
Save n3dst4/506059 to your computer and use it in GitHub Desktop.
jQuery-counting bookmarklet
(function (g) {
var v = [],
i=0,
j=g.jQuery,
d=g.$;
while (g.jQuery) {
v.push(g.jQuery.fn.jquery);
g.jQuery.noConflict(true);
i++ ;
}
g.jQuery = j;
g.$=d;
alert("jQuery loaded " + i + " time" + ((i==1)?"":"s") +
" on this page \n(" + v.join(", ") + ")");
}(window));
javascript:(function (g) {var v = [], i=0, j=g.jQuery, d=g.$; while (g.jQuery) { v.push(g.jQuery.fn.jquery); g.jQuery.noConflict(true); i++ ; } g.jQuery = j; g.$=d; alert("jQuery loaded " + i + " time" + ((i==1)?"":"s") + " on this page \n(" + v.join(", ") + ")");}(window));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment