您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
show eBay IDs in listing
// ==UserScript== // @name eBay ID viewer for HobbyDB // @namespace http://tampermonkey.net/ // @version 0.1 // @license MIT // @description show eBay IDs in listing // @author Ryan // @match https://www.ebay.com/sch/* // @icon https://www.google.com/s2/favicons?domain=ebay.com // @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js // @grant none /* globals $ */ // ==/UserScript== (function() { //ebay changed shit //var item = '<div class="container">' var item = '<div class="s-item__wrapper clearfix">' //ebay changed to the above 9/28 //var item = '<div class="results">' //ebay changed shit $( ".s-item__link" ).each(function(i, obj) { //$( ".vip" ).each(function(i, obj) { const regexp = /ebay.com\/itm\/([0-9]{12})\?(hash|epid)/g; const url = $(this).attr("href"); const array = [...url.matchAll(regexp)]; var itemnum = array[0]?.[1]; item += array[0]?.[1] item += "<br />" $(this).after(`<p style="color:orange;font-size:120%">${itemnum}</p>`) }) $(document.body).append(item); }) ();