您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
better prices display
// ==UserScript== // @name Carrefour - Better prices display // @namespace http://tampermonkey.net/ // @version 0.1 // @description better prices display // @author Romain Racamier-Lafon // @match https://courses-en-ligne.carrefour.fr/* // @grant none // ==/UserScript== (function() { 'use strict'; function apply(){ console.log('bkp - apply'); var els = document.querySelectorAll('.cd-ProductPriceUnit, .cd-ProductPriceReference'); els.forEach(function(el) { if(!el.classList.contains('bkp-processed')){ el.classList.add('bkp-processed'); el.classList.toggle('cd-ProductPriceUnit'); el.classList.toggle('cd-ProductPriceReference'); el.innerHTML = el.innerHTML.replace('/ Kilogramme','<small>/ Kg</small>'); } }); els = document.querySelectorAll('.cd-ProductPriceUnitInteger'); els.forEach(function(el) { el.classList.remove('cd-ProductPriceUnitInteger'); }); } setInterval(apply, 1000); })();