Last active
March 31, 2017 15:01
-
-
Save genedwards/fac512d02d05c90a4b89db6b12435d53 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 url = location.href; | |
hasParameters = url.indexOf('?') > -1; | |
hasRelationshipParameter = url.indexOf('relationshipPrototype') > -1; | |
if (!hasRelationshipParameter) { | |
if (hasParameters) { | |
location.replace(url + '&relationshipPrototype=1'); | |
} else { | |
location.replace(url + '?relationshipPrototype=1'); | |
} | |
} | |
}() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use as a bookmarklet. Adds the query parameters "relationshipPrototype=1" to the url.
Use as a bookmarklet by either dragging the code to your bookmark bar,

OR
right click on your bookmark bar and select add Page, copy paste the code to the URL field.
Just click on the bookmarklet to append the query parameters.