您需要先安装一个扩展,例如 篡改猴、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.3.7 // @description Click all the coupons on BJ's Wholesale Club website // @author sleevetrick // @match https://www.bjs.com/myCoupons* // @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Greasy+Fork+for+BJs+CC // ==/UserScript== var couponAttribute = ""; var totalCoupon = 0; // Conduct coupon clipping function clipCoupons(index, elements, limit, count){ var max = document.querySelectorAll('[data-auto-data="coupon_categoryFilteredCouponCnt"]')[0].lastChild.innerHTML.replaceAll(" Coupons",""); if (index > max || index > 40) { window.scrollTo(0, 0); location.reload(); } elements = document.querySelectorAll('[data-auto-data="coupon_ClipToCard"]'); window.scrollBy(0,80); // If there are no coupons to clip get them by the querySelectorAll if (max == 0) { if (index > 0) { alert("You clipped all coupons! Please consider a donation"); } else { console.log("No coupons to clip"); } } else if (elements == "undefined") { alert("Alert developer to fix due to BJ's code change"); } else { elements[0].click(); totalCoupon++; index++; console.log("Clipping Coupon #" + totalCoupon); setTimeout(()=>{ clipCoupons(index, elements, 1000, count); }, 1000) } } function loadFrame() { totalCoupon = 0; console.log('Beginning Coupon Clipping...!'); clipCoupons(0, "undefined", 1000, 0); }; window.onload = setTimeout(loadFrame, 5000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址