Skip to content

Instantly share code, notes, and snippets.

@dschep
Last active November 28, 2018 22:28
Show Gist options
  • Save dschep/1f3521ebd65ac569a13d0a0daf508031 to your computer and use it in GitHub Desktop.
Save dschep/1f3521ebd65ac569a13d0a0daf508031 to your computer and use it in GitHub Desktop.
Get list of current AWS shortcuts
javascript:(() => {
/* Parse cookies into a map */
const cookies = new Map(document.cookie.split(/\s*;\s*/g).map(kv => kv.split('=')));
/* decode and parse the noflush_awscnm cookie */
const noflush_awscnm = JSON.parse(decodeURIComponent(cookies.get('noflush_awscnm')));
/* display the comma delimited shortcuts to user */
alert(`current shortcuts: ${noflush_awscnm.sc.join(',')}`);
})()
@dschep
Copy link
Author

dschep commented Oct 9, 2018

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