Board Thread:Script Suggestions/@comment-29457887-20160731120202

I made a gadget settings panel in late May this year. It shows a modal window and a list of options that users can select to enable. However they can only be stored as cookies thus it can only be browser-wide. Later this week I moved the contents to a custom special page (please enable test mode first). The codes can be found in here and here. I think this may be a proper replacement of the old gadgets, which I have never tried out.

I would like to make the script more efficient like this: Note: Only "scope", "js" and "css" can have multiple values. All scripts are loaded from the Dev Wiki only.

Which is rendered as: Below is a list of custom features ("gadgets") you may enable for your browser. Most of them require JavaScript to be enabled in your browser. Please note that these tools are not part of the MediaWiki software, and are usually developed and maintained by users on the Wikia Developers Wiki.

Browsing ☑️ Watch YouTube videos without changing location ☑️ Highlight admins

Editing ☑️ Reduce gradients ☑️ Hide edit syntax highlight

Admin tools ☑️ AjaxBatchDelete: allow deleting pages by listing them in a form

Bureaucrat tools ☑️ User Rights Reasons Dropdown: adds a dropdown menu for reasons to Special:UserRights

Saving the settings will reload the current page. Make sure that you have enabled cookies. Settings are saved on your browser instead of your account.

Save

There is a problem on tablets that the checkbox and labels won't align correctly.

(The current live version is still a modal window.) 