Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Forked from SeanJA/jquery.referrer.js
Created October 4, 2012 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gavinblair/3834198 to your computer and use it in GitHub Desktop.
Save gavinblair/3834198 to your computer and use it in GitHub Desktop.
Get the referrer with jQuery: A useless bookmarklet
javascript:(function(){ jQuery.fn.referrer = function() { return jQuery(document).prop("referrer").toString(); }; alert(jQuery().referrer()); })();
@gavinblair
Copy link
Author

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