您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight different rows when comparing items
// ==UserScript== // @name Zap.co.il Highlight diffs in compare window // @namespace http://shmulik.flint.org/ // @version 0.1 // @description Highlight different rows when comparing items // @author Shmulik Flint // @match https://www.zap.co.il/compare.aspx?* // @updateUrl https://gist.github.com/splintor/00b77e6ceefaaa5708bc15546b49aa8c/raw // @grant GM_addStyle // ==/UserScript== 'use strict'; GM_addStyle(` .detailsRow.different * { background-color: lemonchiffon !important; font-weight: bold; } `); const rows = [...document.getElementsByClassName('detailsRow')]; rows.forEach(row => { const values = [...row.getElementsByClassName('detailsRowTxt')]; if (values.some(v => v.innerText !== values[0].innerText)) { row.classList.add('different'); } });