Created
September 16, 2020 22:05
-
-
Save akhr/fa112abba045fb10b6647f3ec76dd63b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name eBay Search - added Top verified seller (Star) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include *.ebay.* | |
// @require https://code.jquery.com/jquery-3.5.1.min.js | |
// ==/UserScript== | |
$("span.s-item__detail.s-item__detail--secondary:has('.s-item__etrs')" ).after('<span class="s-item__detail s-item__detail--secondary"><span class="s-item__etrs"><span class="x-tooltip" id="s0-14-11-6-3-listing1-item-1-1-15[0[3[0]]]-0-10"><span class="tooltip tooltip--focus flyout--js tooltip--js" id="flyout-0"><span class="tooltip__trigger" tabindex="0" aria-labelledby="tooltip-s0-14-11-6-3-listing1-item-1-1-15[0[3[0]]]-0-10" aria-describedby="tooltip-s0-14-11-6-3-listing1-item-1-1-15[0[3[0]]]-0-10" aria-controls="tooltip-s0-14-11-6-3-listing1-item-1-1-15[0[3[0]]]-0-10"><span aria-hidden="true" class="s-item__etrs-new-plus"></span><span><img aria-hidden="true" width="15px" height="15px" src="https://www.freepnglogos.com/uploads/star-png/file-featured-article-star-svg-wikimedia-commons-8.png" alt="Top verified"/></span><span id="tooltip-s0-14-11-6-3-listing1-item-1-1-15[0[3[0]]]-0-10" class="tooltip__overlay flyout-notice flyout-notice--information" role="tooltip"><b>Top verified seller</b><br><ul class="s-item__etrs-tooltip--list"><li>Sellers with highest buyer ratings</li><li>Returns, money back</li><li>Ships in a business day with tracking</li></ul><a href="http://pages.ebay.com/trp/index.html">Learn More</a><span class="flyout-notice__pointer-top-left"></span></span></span></span><span class="s-item__etrs-text">Top verified seller</span></span></span>'); | |
$("div.vi-swc-title" ).after('</div><div class="vi-swc-content" role="presentation"> <div class="vi-swc-icon-wrapper"> <span><img aria-hidden="true" width="23px" height="23px" src="https://www.freepnglogos.com/uploads/star-png/file-featured-article-star-svg-wikimedia-commons-8.png" alt="Top verified"/></span> </div> <div class="vi-swc-message-wrapper"> <div class="vi-swc-header">Top verified seller</div> <div class="vi-swc-message"> <span>Top verified seller, fast shipping, and easy returns.</span> <a href="https://www.ebay.com/help/selling/seller-levels-performance-standards/seller-levels-performance-standards?id=4080&_trksid=p2047675.m5391.l9998" target="_blank" id=""> Learn more<span class="clipped"> - Top verified seller - opens in new window or tab</span> </a> </div> </div> </div><div class="vi-swc-rl">'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment