您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
mark high value coupons
// ==UserScript== // @name Aliexpress.COM Coupon Center filtering // @name:ru фильтр Aliexpress Центр купонов // @namespace http://tampermonkey.net/ // @version 0.1.5 // @description mark high value coupons // @description:ru выделение купонов с большим процентом скидки // @author // @license MIT // @match https://campaign.aliexpress.com/wow/gcp-plus/ae/tupr* // @Match https://*.aliexpress.com/gcp/300001062/Coupon-Center* // @match https://*.aliexpress.com/gcp/300001418/H2rSpKrzT5* // @Match https://www.aliexpress.com/ssr/300001527/CouponCenter // @require https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js // @icon https://www.google.com/s2/favicons?sz=64&domain=aliexpress.com // @grant none // @run-at document-body // ==/UserScript== (function() { 'use strict'; console.warn("script working..."); let discountPercent = 90; const queries = { couponContainer: 'div[style="margin: 8px;"]', }; let couponContainer; discountPercent /= 100; document.arrive(queries.couponContainer, function () { const elemsContainer = this.innerText.split('\n'); let discount = elemsContainer[0].replace(/\D/g, ''); let amount = elemsContainer[2].replace(/\D/g, ''); if ( discount / amount <= discountPercent) { this.style.opacity = 0.25; } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址