Click Data Tab

Clicks the Data tab on page load

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Click Data Tab
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Clicks the Data tab on page load
// @match        https://www.amazon.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 创建按钮元素
    const executeButton = document.createElement('button');
    executeButton.textContent = '执行命令';
    executeButton.style.position = 'fixed';
    executeButton.style.left = '50%';
    executeButton.style.bottom = '20px';
    executeButton.style.transform = 'translateX(-50%)';

    // 将按钮添加到页面中
    document.body.appendChild(executeButton);

    // 添加按钮点击事件监听器
    executeButton.addEventListener('click', function() {
        // 执行命令:点击 "Data" 标签
        const tabMore = document.getElementById('tabMore');
        if (tabMore) {
            tabMore.click();
        }
    });
})();