Click Data Tab

Clicks the Data tab on page load

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
        }
    });
})();