GC Quick Vending Machines

Auto-fills selections randomly at the Nerkmid Machine, Neocola Machine, and Ice Cream Cart at grundos.cafe.

  1. // ==UserScript==
  2. // @name GC Quick Vending Machines
  3. // @namespace http://devipotato.net/
  4. // @version 2
  5. // @description Auto-fills selections randomly at the Nerkmid Machine, Neocola Machine, and Ice Cream Cart at grundos.cafe.
  6. // @author DeviPotato (Devi on GC, devi on Discord)
  7. // @license MIT
  8. // @match https://www.grundos.cafe/vending/select/
  9. // @match https://www.grundos.cafe/winter/icecream/
  10. // @match https://www.grundos.cafe/moon/neocola/select/
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. function getRandomInt(max) {
  18. return Math.floor(Math.random() * max);
  19. }
  20. let dropdowns = document.querySelectorAll("#page_content .select-wrapper select");
  21.  
  22. if(dropdowns.length>0) {
  23. dropdowns.forEach(dropdown => {
  24. dropdown.selectedIndex = getRandomInt(dropdown.length-1)+1;
  25. })
  26. dropdowns[0].selectedIndex = 1;
  27. }
  28. })();

QingJ © 2025

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