您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remembers the last dropdown selection
- // ==UserScript==
- // @name GC - Inventory dropdown selector
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description Remembers the last dropdown selection
- // @author wibreth
- // @match https://www.grundos.cafe/itemview/*
- // @match https://www.grundos.cafe/useobject/*
- // @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);
- });
- // useobject
- let recip = GM_getValue("recip", false);
- if (recip) {
- $('#recip').val(recip);
- }
- $('#recip').change(function() {
- recip = $('#recip').val();
- GM_setValue("recip", recip);
- });
- })();