-
Notifications
You must be signed in to change notification settings - Fork 3
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.
There are multiple ways to find the indexes for dropdown options, however I'll be going over the easiest one here.
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:
document.getElementById("division").selectedIndex;document.getElementById("idTypeId").selectedIndex;