您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adobe Kaufhilfe
// ==UserScript== // @name Adobe kaufen Shop-Hilfe // @namespace http://tampermonkey.net/ // @version 1 // @description Adobe Kaufhilfe // @author Nicht verraten // @match https://commerce.adobe.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // ==/UserScript== waitForElm("[data-qid='companyName']").then((elm) => { elm.addEventListener("focus", go11); }); function go11(){ alert("Los geht's. Danke Omar_Sharief. Danke MyDealz"); go22(0); } function go22(i){ console.log("GO22!:" + i) let button = document.querySelector('#action-button-payment:not([disabled])'); console.log(button) if (button != undefined) { document.getElementById('action-button-payment').click(); } else { let companyButton = document.querySelector("[data-qid='firstName']"); if (companyButton != undefined) { companyButton.focus(); companyButton.click(); } } setTimeout(function(){ i++; go22(i); }, 3000); } function waitForElm(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); }