User:Void/userRights.js

// //Script for changing userrights on meta, or other wikis return; // Extreme WIP, DO NOT LOAD /* *	TODO: submit funciton, allow for selecting which user, add more groups, maybe rebuild Special:UserRights completely, remove the last todo item */ mw.loader.using(['mediawiki.util', 'oojs-ui']).then( function {	var link = mw.util.addPortletLink( 'p-personal', '#',		'UserRights', 'pt-userrights', 'Edit local or interwiki user rights', null, 'pt-preferences' );	$(link).click(function{ //Make interface $('#bodyContent').replaceWith(' '); var wikiSelect = new OO.ui.ComboBoxInputWidget({			value: 'meta',			options: [				{ data: 'metawiki', label: 'meta' },				{ data: 'testwiki', label: 'test' },			],			id: 'ur-wiki'		}); $('#ur-interface').append('Select which wiki you want to modify rights on: '); $('#ur-interface').append(wikiSelect.$element); $('#ur-interface').append('  '); //Spacing var rightsField = new OO.ui.FieldsetLayout({label:'The script will attempt to add a checked permission and remove an unchecked permission'}); rightsField.addItems([			new OO.ui.FieldLayout( new OO.ui.CheckboxInputWidget({ id: 'ur-oversigt' }), { label: 'Oversight', align: 'inline' } ),			new OO.ui.FieldLayout( new OO.ui.CheckboxInputWidget({ id: 'ur-checkuser' }), { label: 'CheckUser', align: 'inline' } )		]); $('#ur-interface').append(rightsField.$element); $('#ur-interface').append('  '); //Spacing var submit = new OO.ui.ButtonWidget({ label: 'Submit' }); $('#ur-interface').append(submit.$element.click(function{ submit; })); });	function submit {	} }); //