Click Data Tab

Clicks the Data tab on page load

  1. // ==UserScript==
  2. // @name Click Data Tab
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Clicks the Data tab on page load
  6. // @match https://www.amazon.com/*
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12.  
  13. // 创建按钮元素
  14. const executeButton = document.createElement('button');
  15. executeButton.textContent = '执行命令';
  16. executeButton.style.position = 'fixed';
  17. executeButton.style.left = '50%';
  18. executeButton.style.bottom = '20px';
  19. executeButton.style.transform = 'translateX(-50%)';
  20.  
  21. // 将按钮添加到页面中
  22. document.body.appendChild(executeButton);
  23.  
  24. // 添加按钮点击事件监听器
  25. executeButton.addEventListener('click', function() {
  26. // 执行命令:点击 "Data" 标签
  27. const tabMore = document.getElementById('tabMore');
  28. if (tabMore) {
  29. tabMore.click();
  30. }
  31. });
  32. })();

QingJ © 2025

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