Skip to content

Instantly share code, notes, and snippets.

@bvancil
Created May 28, 2015 13:01
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 bvancil/139dc04f5bc65ae5af04 to your computer and use it in GitHub Desktop.
Save bvancil/139dc04f5bc65ae5af04 to your computer and use it in GitHub Desktop.
Product Grabber Bookmarklet for E-Commerce Website ArborSci.com
javascript: (function(e, a, g, h, f, c, b, d) {
if (!(f = e.jQuery) || g > f.fn.jquery || h(f)) {
c = a.createElement("script");
c.type = "text/javascript";
c.src = "http://ajax.googleapis.com/ajax/libs/jquery/" + g + "/jquery.min.js";
c.onload = c.onreadystatechange = function() {
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
h((f = e.jQuery).noConflict(1), b = 1);
f(c).remove()
}
};
a.documentElement.childNodes[0].appendChild(c)
}
})(window, document, "1.3.2", function($, L) {
alert(document.title + "\t" + location.href + "\t" + $(".product-ids").html().split(" ")[2] + "\t" + $(".price").html());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment