Greasy Fork镜像 支持简体中文。

GC - Inventory dropdown selector

Remembers the last dropdown selection

目前為 2023-03-22 提交的版本,檢視 最新版本

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

QingJ © 2025

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