您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Looks at trading post entries with secret laboratory map pieces and tells you how many total pieces there are and how many are distinct/unique (so you can buy a full set and avoid being scammed)
// ==UserScript== // @name Neopets Trading Post - Lab Map Duplicate Checker // @namespace http://tampermonkey.net/ // @version 0.1 // @license MIT // @description Looks at trading post entries with secret laboratory map pieces and tells you how many total pieces there are and how many are distinct/unique (so you can buy a full set and avoid being scammed) // @author Morde // @match https://www.neopets.com/island/tradingpost.phtml?type=browse* // @icon https://www.google.com/s2/favicons?sz=64&domain=neopets.com // @grant none // ==/UserScript== (function() { 'use strict'; $('td:not([bgcolor]) > table[width="100%"][cellpadding="2"][cellspacing="0"][border="0"]').each((i, table) => { const imgs = $(table).find('img'); const imgSrcs = imgs.toArray().map(x => x.src).filter(x => x.includes('/labmap_')); const distinctImgSrcs = new Set(imgSrcs); if (imgSrcs.length) { table.append(`${imgSrcs.length} piece${imgSrcs.length === 1 ? '' : 's'}, ${distinctImgSrcs.size} distinct`); } }) })();