World Language Games - Name Auto Select

Automatically selects your name on the World Language Games homepage. You will have to set the number index of your name manually, but only once.

  1. // ==UserScript==
  2. // @name World Language Games - Name Auto Select
  3. // @license MIT
  4. // @namespace https://github.com/engelthehyp/Automation-for-World-Language-Games
  5. // @version 1.1
  6. // @description Automatically selects your name on the World Language Games homepage. You will have to set the number index of your name manually, but only once.
  7. // @author https://github.com/engelthehyp/
  8. // @match *://wlangames.net/*
  9. // @exclude *://wlangames.net/PlayGame.php*
  10. // @icon https://www.google.com/s2/favicons?domain=wlangames.net
  11. // @grant none
  12. // @run-at document-end
  13. // ==/UserScript==
  14.  
  15. /**
  16. * TO FIND THE INDEX:
  17. * Start counting at 0.
  18. * For every name in the dropdown, add 1. (Including the "Enter your name" and "Special guest" options)
  19. * Stop when you get to your name. That number is the index.
  20. */
  21.  
  22. (function () {
  23. 'use strict';
  24.  
  25. const nameIndex = 0; // Enter the index of your name here
  26. document.getElementById('Student').selectedIndex = nameIndex;
  27. })();