Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A bookmarklet to prompt you for a new document.referrer
var newReferrer = prompt('Set the referrer:');
Object.defineProperty(document, "referrer", {configurable: true, get : function(){ return newReferrer; }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment