Skip to content

Instantly share code, notes, and snippets.

Embed
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()); })();
@SeanJA
Copy link

SeanJA commented Oct 5, 2012

@gavinblair
Copy link
Author

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