您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Calculates the total price of your AH delivery and shows it on the "mijn lijst" page
当前为
// ==UserScript== // @name AH price calc // @namespace http://tampermonkey.net/ // @version 0.1 // @description Calculates the total price of your AH delivery and shows it on the "mijn lijst" page // @author Maarten // @match https://www.ah.nl/mijnlijst // @grant none // ==/UserScript== setTimeout(calc, 2500) function calc() { var total = 0; var item = document.querySelectorAll('.shoppinglist-lane article'); for (var i = 0; item[i]; i++) { var price = 0; if (typeof item[i].childNodes[0].childNodes[3].childNodes[1] !== 'undefined') { price = item[i].childNodes[0].childNodes[3].childNodes[1].outerText; } else { price = item[i].childNodes[0].childNodes[3].outerText; } var quantity = item[i].childNodes[1].childNodes[1].childNodes[2].value; total += quantity * price; } total = Math.round(total * 100) / 100; var header = document.querySelectorAll('.edc-heading.heading--10')[0]; header.innerHTML = header.innerHTML + ' € '+total.toLocaleString(); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址