Skip to content

Autoselect Indexes

blank_dvth edited this page Feb 12, 2023 · 3 revisions

Autoselect indexes are used in the MAUL Enhancement script to automatically select the Division and Game ID Type when adding a ban. This page documents how to find those indexes so that you can configure it.


Autoselect Indexes

There are multiple ways to find the indexes for dropdown options, however I'll be going over the easiest one here.

Instructions

Head to the Add Ban Page, and select the Division/Game ID to the option you want autoselected. Then, open Inspect Element (Ctrl + Shift + I), head to the "Console" tab, and paste the corresponding code in the console. The number that it shows on the next line should be the index you want to use if you did everything right:

Division

document.getElementById("division").selectedIndex;

Game ID Type

document.getElementById("idTypeId").selectedIndex;

Clone this wiki locally