Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser
view-current-page-cookies.js

#Basic

View current page url cookies

all color demo image

// viewcookies.js // https://github.com/bgrins/devtools-snippets // Shows all cookies stored in document.cookies in a console.table (function () { 'use strict'; window.viewCookies = function () { if (document.cookie) { const cookies = document.cookie .split(/; ?/) .map(s => { const [, key, value] = s.match(/^(.*?)=(.*)$/); return { key, value: decodeURIComponent(value) }; }); console.table(cookies); } else { console.warn('document.cookie is empty!'); } }; })(); window.viewCookies();
Built with ❤️ by @domnguyen and everyone on the internet 🚀