Skip to content

Instantly share code, notes, and snippets.

@glacials
Last active May 17, 2021 21:59
Show Gist options
  • Save glacials/d6c9e18ac0bbace95f1f1a02af9fd7bd to your computer and use it in GitHub Desktop.
Save glacials/d6c9e18ac0bbace95f1f1a02af9fd7bd to your computer and use it in GitHub Desktop.
Bypass typing "permanently delete" for S3 objects

Save this text as a bookmark and click it whenever you would otherwise have to type the text "permanently delete" into the S3 delete object page. The delete button will be enabled.

javascript:document.querySelectorAll("input:disabled, button:disabled").forEach(e => { e.disabled = false; e.classList.remove("awsui-button-disabled") });

Expanded source:

document.querySelectorAll("input:disabled, button:disabled").forEach(e => {
  e.disabled = false
  e.classList.remove("awsui-button-disabled")
})

Why?

AWS boy-who-cried-wolfed us. They thought typing "permanently delete" would make you be sure of what you're doing, but it has only trained you to type "permanently" quickly.

Services who make you type the name of the thing you're about to delete are doing it right. 👍

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