Greasy Fork is available in English.

GC - Inventory dropdown selector

Remembers the last dropdown selection

La data de 22-03-2023. Vezi ultima versiune.

// ==UserScript==
// @name         GC - Inventory dropdown selector
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remembers the last dropdown selection
// @author       wibreth
// @match        https://www.grundos.cafe/itemview/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe
// @grant        GM_setValue
// @grant        GM_getValue
// ==/UserScript==

(function() {
    'use strict';

    let itemaction = GM_getValue("itemaction", false);
    if (itemaction) {
        $('#itemaction_select').val(itemaction);
    }
    $('#itemaction_select').change(function() {
        itemaction = $('#itemaction_select').val();
        GM_setValue("itemaction", itemaction);
    });
})();