Skip to content

Instantly share code, notes, and snippets.

View oscarmarcelo's full-sized avatar

Oscar Marcelo oscarmarcelo

View GitHub Profile
@oscarmarcelo
oscarmarcelo / neonmob-collection-sort.js
Last active December 19, 2015 23:59 — forked from matthewsimo/neonmob-collection-sort.js
Sorts Neonmob Collections by rarity. (Bookmarklet is in the first comment)
var common = [], uncommon = [], rare = [], veryRare = [], extremelyRare = [], chase = [], variant = [], itemType, itemWrap, items;
if(document.getElementsByClassName('collection').getElementsByClassName('item-grid')){
itemWrap = $("div.collection ul.item-grid");
itemType = "grid";
}
if(document.getElementsByClassName('pod').getElementsByClassName('item-list')){
itemWrap = $("div.pod ul.item-list");
itemType = "list";
}