Skip to content

Instantly share code, notes, and snippets.

@genedwards
Last active March 31, 2017 15:01
Show Gist options
  • Save genedwards/fac512d02d05c90a4b89db6b12435d53 to your computer and use it in GitHub Desktop.
Save genedwards/fac512d02d05c90a4b89db6b12435d53 to your computer and use it in GitHub Desktop.
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');
}
}
}()
)
@genedwards
Copy link
Author

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.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment