您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When downloading Amazon eBooks ("Content & Devices" -> "Books" -> "More actions" -> "Download & transfer via USB") you can now click in the whole box of the device instead of just the little radio button
// ==UserScript== // @name Amazon eBook "Download & transfer via USB" easy device click // @namespace MKScripts // @version 1.3 // @description When downloading Amazon eBooks ("Content & Devices" -> "Books" -> "More actions" -> "Download & transfer via USB") you can now click in the whole box of the device instead of just the little radio button // @author MKScripts // @grant none // @match https://www.amazon.*/* // @match https://www.amazon.*/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.ca/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.co.jp/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.co.uk/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.com.au/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.com.br/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.com.mx/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.com/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.de/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.es/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.fr/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.in/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.it/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.nl/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.sa/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.se/hz/mycd/digital-console/contentlist/* // @match https://www.amazon.sg/hz/mycd/digital-console/contentlist/* // ==/UserScript== (function() { 'use strict'; // Add click event listener to the document body for event delegation document.body.addEventListener('click', function (event) { // Check if the clicked element is an <li> or if it's a <div> within an <li> var isActionListItem = (event.target.tagName === 'LI' && event.target.querySelector('input[type="radio"]')) || (event.target.tagName === 'DIV' && event.target.closest('li') && event.target.closest('li').querySelector('input[type="radio"]')); if (isActionListItem) { // Find the radio button within the clicked LI or the closest LI var radioButton = (event.target.tagName === 'LI') ? event.target.querySelector('input[type="radio"]') : event.target.closest('li').querySelector('input[type="radio"]'); // Check the radio button if it exists if (radioButton) { // Simulate a click event on the radio button radioButton.click(); } } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址