Skip to content

Instantly share code, notes, and snippets.

@elwinschmitz
Created December 20, 2016 11:47
Show Gist options
  • Select an option

  • Save elwinschmitz/4b0fdb68f1b83846a6486b2c31199abb to your computer and use it in GitHub Desktop.

Select an option

Save elwinschmitz/4b0fdb68f1b83846a6486b2c31199abb to your computer and use it in GitHub Desktop.

Revisions

  1. elwinschmitz created this gist Dec 20, 2016.
    6 changes: 6 additions & 0 deletions bookmarklet-set-cookie.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    (function(){
    var cookieToSet = prompt('Cookie:','');
    if (cookieToSet) {
    document.cookie = cookieToSet + ';path=/';
    }
    }())