您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto selects the scratchcard option for you
// ==UserScript== // @name GC - Scratchcards Dropdown Selector // @namespace http://tampermonkey.net/ // @version 1.2 // @description Auto selects the scratchcard option for you // @author Teffy // @match https://www.grundos.cafe/*/kiosk/ // @match https://grundos.cafe/*/kiosk/ // @match https://www.grundos.cafe/*/purchase-scratchcard/ // @match https://grundos.cafe/*/purchase-scratchcard/ // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; $(document).ready(function() { $('form select[name="card"]').each(function() { $(this).val($(this).find('option:not([hidden]):eq(0)').val()); }); }); })();