Added an additional color for rarity filtering.

master
parent 5e830c7973
commit 638a3886da

@ -1,9 +1,9 @@
// ==UserScript== // ==UserScript==
// @name Dapper Ducks // @name Dapper Ducks
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 1.0.1 // @version 1.0.2
// @description Press Q to Auto-refresh // @description Press Q to Auto-refresh
// @author NFTHoarder - Modified by WTMike24 // @author NFTHoarder - Modified by WTMike24 and @DUCKSAUCE (@ROCKETSAUCE)
// @match https://magiceden.io/marketplace/dapper_ducks // @match https://magiceden.io/marketplace/dapper_ducks
// @icon https://www.google.com/s2/favicons?domain=moonrank.app // @icon https://www.google.com/s2/favicons?domain=moonrank.app
// @grant none // @grant none
@ -4538,12 +4538,16 @@
$(this).text("#"+mint+"; Rank: "+rarityRank) $(this).text("#"+mint+"; Rank: "+rarityRank)
$(this).parent().parent().parent().parent().css({ opacity: opacity }); $(this).parent().parent().parent().parent().css({ opacity: opacity });
if(rarityRank <= window.MintSize/10) { if(rarityRank <= window.MintSize/80) {
$(this).parent().parent().parent().parent().css({ border: '5px solid chartreuse' });
} else if(rarityRank <= window.MintSize/10) {
$(this).parent().parent().parent().parent().css({ border: '5px solid yellow' }); $(this).parent().parent().parent().parent().css({ border: '5px solid yellow' });
} else if(rarityRank <= window.MintSize/5) { } else if(rarityRank <= window.MintSize/5) {
$(this).parent().parent().parent().parent().css({ border: '5px solid silver' }); $(this).parent().parent().parent().parent().css({ border: '5px solid silver' });
} }
$(this).removeClass('grid-card__title'); $(this).removeClass('grid-card__title');
$(this).removeClass('grid-card__title');
$(this).removeClass('grid-card__title');
}); });
} }
})(); })();

Loading…
Cancel
Save