Skip to content

Instantly share code, notes, and snippets.

@tallykatt
Forked from acarbonaro/addEditCookie.js
Created July 25, 2016 02:01
Show Gist options
  • Save tallykatt/3c649acda00963b78850b4f198cd75db to your computer and use it in GitHub Desktop.
Save tallykatt/3c649acda00963b78850b4f198cd75db to your computer and use it in GitHub Desktop.
Add or edit a cookie using a simple bookmarklet. Highlight the code and drag it to your bookmarks bar, just remember to give it a name!
javascript:(function(){var cookieName = prompt("Enter Cookie Name", ""); var cookieValue = prompt("Enter Cookie Value", ""); document.cookie=cookieName+"="+cookieValue+";path=/"; location.reload(); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment