GC - Inventory dropdown selector

Remembers the last dropdown selection

  1. // ==UserScript==
  2. // @name GC - Inventory dropdown selector
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Remembers the last dropdown selection
  6. // @author wibreth
  7. // @match https://www.grundos.cafe/itemview/*
  8. // @match https://www.grundos.cafe/useobject/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. let itemaction = GM_getValue("itemaction", false);
  18. if (itemaction) {
  19. $('#itemaction_select').val(itemaction);
  20. }
  21. $('#itemaction_select').change(function() {
  22. itemaction = $('#itemaction_select').val();
  23. GM_setValue("itemaction", itemaction);
  24. });
  25.  
  26. // useobject
  27. let recip = GM_getValue("recip", false);
  28. if (recip) {
  29. $('#recip').val(recip);
  30. }
  31. $('#recip').change(function() {
  32. recip = $('#recip').val();
  33. GM_setValue("recip", recip);
  34. });
  35.  
  36. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址