MouseHunt - Sort charms by quantity

Sort charms by quantity

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         MouseHunt - Sort charms by quantity
// @author       zseir
// @namespace    https://greasyfork.org/en/users/367506-zseir
// @version      1.1
// @description  Sort charms by quantity
// @include      https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @include      http://www.mousehuntgame.com/*
// @include      https://www.mousehuntgame.com/*
// ==/UserScript==



$(document).ready(function() {

   
    if (document.getElementsByClassName('campPage-trap-armedItem trinket active')) {
        if (document.getElementsByClassName('campPage-trap-itemBrowser-filter sortBy')) {
            document.getElementsByClassName('campPage-trap-itemBrowser-filter sortBy')[0].children[1].append(new Option('Quantity', 'quantity'));
        }
    }

});