Created
January 25, 2018 16:54
-
-
Save mattm/7d9121eb1d3677daa68b269dd23ca379 to your computer and use it in GitHub Desktop.
A bookmarklet to prompt you for a new document.referrer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
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