您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show the true total including shipping on Ebay
当前为
// ==UserScript== // @name Ebay Include Shipping // @namespace ebay_include_shipping // @description Show the true total including shipping on Ebay // @homepageURL https://github.com/daraeman/ebay_include_shipping // @author daraeman // @version 1.0.1 // @date 2018-01-05 // @include /https?:\/\/www\.ebay\.com\/*/ // @require https://code.jquery.com/jquery-3.2.1.slim.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/big.js/5.0.3/big.min.js // ==/UserScript== (function( $, Big ) { let page; function getPage() { if ( $( "#Results" ).length ) page = "search"; } function doPage() { if ( page === "search" ) doSearchPage(); } function doSearchPage() { // hide the "previous price" thing since its not very useful and screw up the formatting $( ".cmpat" ).hide(); $( "#ListViewInner .sresult" ).each( ( i, node ) => { let el = $( node ); let item_text = el.find( ".lvprices .lvprice .bold" ).text().trim(); let currency = item_text[0]; let item_price = new Big( item_text.substr( 1 ) ); let shipping_text = el.find( ".lvshipping .ship .fee" ).text().trim().substr( 2 ).replace( "shipping", "" ).trim(); if ( shipping_text ) { let shipping_price = new Big( shipping_text ); addSearchItemShippingPrice( el, item_price.plus( shipping_price ), currency ); } }); } function addSearchItemShippingPrice( el, price, currency ) { let price_parent_el = el.find( ".lvprices .lvprice" ); price_parent_el.prepend( '<span class="bold ebay_include_shipping">'+ currency + price.toFixed( 2 ).toString() +' with shipping</span><br>' ); let item_price_el = price_parent_el.find( ".bold:not( .ebay_include_shipping )" ); item_price_el.text( "(" + item_price_el.text().trim() + ")" ); item_price_el.removeClass( "bold" ).css( { "display": "inline-block", "margin-top": "4px", "font-size": "13px", }); } function init() { getPage(); doPage(); } init(); })( jQuery, Big );
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址