您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click all the coupons on BJ's Wholesale Club website
当前为
// ==UserScript== // @name BJ's Wholesale Club Coupon Clicker // @namespace bjs-wholesale-coupon // @version 1.0 // @description Click all the coupons on BJ's Wholesale Club website // @author lexlieberman // @match https://www.bjs.com/myCoupons // @grant GM_xmlhttpRequest // @connect googlevideo.com // @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Greasy+Fork+Donation // ==/UserScript== var totalCoupon = 0; console.log('Beginning Coupon Clipping...!'); var couponAttribute = document.getElementsByClassName("availableCouponBox")[0].getElementsByTagName("button")[1].getAttributeNames()[0]; function clipCoupons(index, elements, limit, count){ if (elements == "undefined") { elements = document.querySelectorAll("button["+couponAttribute+"]"); count = elements.length; clipCoupons(0, elements, 1000, count); console.log("Next Page..."); } else if (index < count){ elements[index].click(); totalCoupon++; index++; console.log("Clipping Coupon #" + totalCoupon); setTimeout(()=>{ clipCoupons(index, elements, 1000, count); }, 750) } else { if(document.querySelectorAll("span[class='next']").length >= 1) { document.querySelectorAll("span[class='next']")[0].click(); setTimeout(()=>{ clipCoupons(0, "undefined", 1000, 0); }, 3000) } else { printEnd(); } } } clipCoupons(0, "undefined", 1000, 0); function printEnd(){ console.log('Finished'); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址