Skip to content

Instantly share code, notes, and snippets.

@dezren39
Forked from cazepeda-zz/window.location.href
Created October 16, 2022 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dezren39/8fc32f9a2635cc2e36a77130b8ed99b6 to your computer and use it in GitHub Desktop.
Save dezren39/8fc32f9a2635cc2e36a77130b8ed99b6 to your computer and use it in GitHub Desktop.
Bookmarklet to append a string to the end of a URL
window.location.href
====================
Bookmarklet to append a string to the end of the URL.
1. Create bookmark.
2. Edit bookmark URL(Chrome) / Location(Firefox) to include this code: javascript:window.location.href=window.location.href+'REPLACETHIS';
3. Now make use of that bookmarklet.
Code: javascript:window.location.href=window.location.href+'REPLACETHIS';
@dezren39
Copy link
Author

javascript:window.location.href=window.location.href+'?plain=1%27;

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