您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Expands inventory screens to include ALL cards, not just a few at a time. Also provides a DUPES button to only show duplicate cards.
// ==UserScript== // @name MLB The Show Nation - Inventory Expander 17 // @namespace https://greasyfork.org/en/users/8332-sreyemnayr // @version 2017.6 // @description Expands inventory screens to include ALL cards, not just a few at a time. Also provides a DUPES button to only show duplicate cards. // @author sreyemnayr // @match http://theshownation.com/inventory?* // @match http://www.theshownation.com/inventory?* // @grant none // ==/UserScript== (function() { 'use strict'; var table = $('.marketplace-search'); var pagination_links = $('.moreLinks a:not(.next_page)'); $(pagination_links).each(function(i){ var url = $(this).attr('href'); $.ajax({url:url, context:this}).done(function(b){ var thisTable = $(b).find('.marketplace-search'); $(table).append($(thisTable).children()); }); }); var btn = document.createElement('button'); btn.appendChild( document.createTextNode("DUPES") ); btn.className = 'btn btn-xs btn-success'; $('.title-bar')[0].append(btn); $(btn).click(function(i){ $($(table).find('tr')).each(function(i){ var owned = parseInt($($(this).find('td')[2]).text()); if(isNaN(owned) || owned <= 1){ $(this).hide(); } }); console.log("click"); }); })();