您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a dollar value next to the PTS value, in the gallery view.
当前为
// ==UserScript== // @name Listia Points to Dollars 684909 // @namespace technote.fyi // @description Add a dollar value next to the PTS value, in the gallery view. // @include https://www.listia.com/* // @version 1 // @grant none // @require https://code.jquery.com/jquery-3.5.1.slim.min.js // ==/UserScript== /* <span class="price"><div class="ink-wrapper" title="">19,999.99 <span class="ink-unit">PTS</span></div></span> */ jQuery('.price').each(function( index, elem) { var pts = jQuery(this).children('.ink-wrapper'); var ptsval = parseFloat( pts.text().replace(/,/, '').replace(/PTS/, '') ); var dollarfmt = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(ptsval / 500); pts.append(' <span>' + dollarfmt + '</span>'); });