您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds totals per auction on mylots of proveiling.nl
- // ==UserScript==
- // @name Proveiling Totals
- // @namespace nl.veiling.pro
- // @description Adds totals per auction on mylots of proveiling.nl
- // @include http://www.proveiling.nl/MyLots.aspx
- // @version 1
- // @grant none
- // ==/UserScript==
- var ch = $("td");
- var cost = 0;
- $("#itemPlaceholderContainer tr").each(function() {
- if ($(this).data("type") === "header") {
- cost = 0;
- ch = $(this).children("td");
- ch.append($("<strong class='total right'>-</strong>"))
- }
- if ($(this).hasClass("clickable")) {
- cost = cost + parseFloat($(this).find("#next").text().replace(/,/, '.'));
- ch.children(".total").text("€ " + parseFloat(Math.round(cost * 100) / 100).toFixed(2).replace('.', ','));
- }
- });