Auto Refresh Plus 版本 9.0.4
定价

使用自动刷新增强功能取得领先 立即下载

立即获取 Auto Refresh Plus——这款专为自动刷新页面而设计的终极浏览器扩展程序。您可以轻松设置自定义刷新间隔、监控网页,并随时掌握最新内容。Auto Refresh Plus 兼容 Chrome 和 Firefox 浏览器,通过流畅高效的页面刷新功能,为您带来更优质的浏览体验。立即下载,尽享无缝更新的便捷。
添加到 Chrome
隐私政策Cookies 政策条款退款政策

Google 登录仅用于安全认证以及在不同设备间同步您的设置。

©AutoRefreshPlus。保留所有权利 2014 - 2026

BetterLogic FZE 出品

返回市场

价格跟踪

监控电子商务网站上的价格变化并突出显示这些变化

价格、购物、自动化
120 安装
已更新: Oct 7, 2025
shopping

关于此脚本

该脚本利用正则表达式模式自动检测电子商务网站上的价格元素,并以绿色背景将其突出显示。非常适合快速发现优惠信息以及比较不同产品的价格。

脚本配置

URL 模式

*://*/product/*,*://*/item/*

执行时间

On Each Page Refresh

注射点

After Page Load

javascript
1// Price Tracker - Detect and highlight prices on any site
2(function() {
3 'use strict';
4
5 // Regex patterns for different currency formats
6 const pricePatterns = [
7 /\$\d+(?:,\d{3})*(?:\.\d{2})?/g, // $1,234.56
8 /\€\d+(?:,\d{3})*(?:\.\d{2})?/g, // €1,234.56
9 /\£\d+(?:,\d{3})*(?:\.\d{2})?/g, // £1,234.56
10 /\d+(?:,\d{3})*(?:\.\d{2})?\s*(?:USD|EUR|GBP)/gi, // 1234.56 USD
11 ];
12
13 function highlightPrices() {
14 const walker = document.createTreeWalker(
15 document.body,
16 NodeFilter.SHOW_TEXT,
17 null
18 );
19
20 const priceNodes = [];
21 let node;
22
23 while (node = walker.nextNode()) {
24 const text = node.textContent || '';
25 const hasPrice = pricePatterns.some(pattern => pattern.test(text));
26
27 if (hasPrice && node.parentElement) {
28 priceNodes.push(node.parentElement);
29 }
30 }
31
32 // Highlight found prices
33 priceNodes.forEach(element => {
34 if (!element.dataset.priceHighlighted) {
35 element.style.backgroundColor = '#46b881';
36 element.style.color = 'white';
37 element.style.padding = '2px 6px';
38 element.style.borderRadius = '4px';
39 element.style.fontWeight = 'bold';
40 element.dataset.priceHighlighted = 'true';
41 console.log('[Price Tracker] Highlighted:', element.textContent);
42 }
43 });
44 }
45
46 // Run on page load
47 highlightPrices();
48
49 // Re-run when content changes
50 const observer = new MutationObserver(() => {
51 setTimeout(highlightPrices, 300);
52 });
53
54 observer.observe(document.body, { childList: true, subtree: true });
55})();
56

如何安装

  1. 点击上方的**“安装脚本**”按钮,复制格式化的配置
  2. 打开 Auto Refresh Plus 扩展程序,并导航至“自定义脚本”部分
  3. 粘贴配置并保存更改
  4. 脚本将根据您的配置,在匹配的 URL 上自动运行