AWS CLI - Auto Click "Confirm and Continue"

Automatically clicks the "Confirm and Continue" button when it becomes available.

作者
vivasvan-patel-ev
日安装量
1
总安装量
1
评分
0 0 0
版本
2024-11-27
创建于
2025-03-04
更新于
2025-03-04
大小
1.2 KB
许可证
暂无
适用于

AWS CLI - Auto Click "Confirm and Continue" (Tampermonkey Script)

Description

This Tampermonkey script automates the clicking of the "Confirm and Continue" button when accessing AWS CLI through the AWS web portal. It is designed to work on AWS WorkSpaces or AWS CLI login pages where manual confirmation is required.

Features

  • Auto-clicks the "Confirm and Continue" button (#cli_verification_btn) as soon as it becomes available.
  • Uses a MutationObserver to detect changes in the DOM and trigger the click event.
  • Runs automatically when the page is loaded (@run-at document-idle).

How It Works

  1. Detects the Button: The script looks for the "Confirm and Continue" button on the AWS authentication page.
  2. Clicks the Button Automatically: If found, it clicks the button immediately.
  3. Monitors DOM Changes: In case the button is loaded dynamically, the script continuously checks for its appearance using a MutationObserver.
  4. Runs at Idle State: The script starts when the page is fully loaded, ensuring it works efficiently.

Installation Instructions

  1. Install Tampermonkey for your browser.
  2. Click on the Tampermonkey extension icon and select "Create a new script".
  3. Delete the default code and paste the script provided.
  4. Save the script and enable it.
  5. Navigate to your AWS CLI login page (https://d-9a67274801.awsapps.com/*), and the script will automatically handle the confirmation step.

Supported URLs

Permissions

  • No additional permissions are required (@grant none).
  • Runs only on the specified AWS domain (@match is restricted to AWS CLI login pages).

Troubleshooting

  • If the script does not work:
    • Ensure Tampermonkey is installed and the script is enabled.
    • Verify that the button selector (#cli_verification_btn) is still correct (AWS may update its UI).
    • Refresh the page after enabling the script.

Notes

  • This script does not store or send any user data.
  • If AWS changes its page structure or button ID, the script may require an update.

License

This script is provided as-is with no guarantees. Modify and use it at your own risk.


🚀 Enjoy hassle-free AWS CLI authentication!

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址