Skip to content

Instantly share code, notes, and snippets.

@glitchninja2000
Last active November 16, 2020 23:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glitchninja2000/13a4d397b60510226519338bef0af7f8 to your computer and use it in GitHub Desktop.
Save glitchninja2000/13a4d397b60510226519338bef0af7f8 to your computer and use it in GitHub Desktop.
Create / Edit Cookies (JavaScript Bookmarklet)

Add To Browser

  1. Copy code to clipboard: javascript:document.cookie=prompt('Input "name=value"')
  2. Bookmark this page (Windows ⌃+D, Mac OSX ⌘+D)
  3. Replace URL with code from clipboard

How To Use

  1. Visit the page you wish to add/change a cookie on
  2. Open bookmarklet
  3. Input the cookie name and value, e.g. name=value, cookies=12, txt = some text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment