Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get the referrer with jQuery: A useless bookmarklet
javascript:(function(){ jQuery.fn.referrer = function() { return jQuery(document).prop("referrer").toString(); }; alert(jQuery().referrer()); })();
Copy link

SeanJA commented Oct 5, 2012

Copy link

gavinblair commented Oct 5, 2012

fixed! I made your jquery plugin into a bookmarklet. Warning (feature?) : only works on sites that have jQuery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment