Skip to content

Instantly share code, notes, and snippets.

@mkgl
Last active September 23, 2017 16:53
Show Gist options
  • Save mkgl/0fc2c3445e457dc7ba300afe070420ec to your computer and use it in GitHub Desktop.
Save mkgl/0fc2c3445e457dc7ba300afe070420ec to your computer and use it in GitHub Desktop.
javascript:(function(p){s=location.search;if(!s.includes("?"+p)&&!s.includes("&"+p))location.search+=s.startsWith("?")?"&"+p:"?"+p})("restartApplication")
@mkgl
Copy link
Author

mkgl commented May 27, 2016

Append query string params via bookmarklet

(like thousands of others)
  • Appends the given parameter to the current URL's query parameters (see function parameter p)
    • It's set to "restartApplication" for the example
  • Adds as ?param or &param automatically

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