Created
September 7, 2020 09:44
-
-
Save darioseidl/64587b67fd0d8298c5c184470aa7947e to your computer and use it in GitHub Desktop.
AWS management console shortcuts bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The AWS management console shortcuts are stored in a cookie. | |
// This bookmarklet can be used to (re-)create the cookie. | |
// https://forums.aws.amazon.com/message.jspa?messageID=883519 | |
javascript:var s="eb,ec2,ecr,rds,r53,s3,ses,iam"; var m = "tm-icon"; var c=document.cookie.replace(/(?:(?:^|.*;\s*)noflush_awscnm\s*\=\s*([^;]*).*$)|^.*$/, "$1"); if (!c) { alert("Can't find cookie. Wrong domain?"); } else { var awscnm=JSON.parse(decodeURIComponent(c)); awscnm.sc = s.split(","); awscnm.toolbarMode = m; document.cookie = `noflush_awscnm=${encodeURIComponent(JSON.stringify(awscnm))};domain=.console.aws.amazon.com;path=/`; alert(`Restored: ${awscnm.sc}`);} void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment