Widget:ReaderConfig

/* <![CDATA[ */ $(function {	var width = mw.user.options.get('userjs-weReader') || 1024;	function showButton {		$('#weReaderSpinner').hide;		$('#weReaderSubmit').show;	}

$('#weReaderWidth').val(width); $('#weReaderSubmit').click(function {		var breakpoint,	   	api = new mw.Api;

$('#weReaderSubmit').hide; $('#weReaderSpinner').show; breakpoint = parseInt($('#weReaderWidth').val, 10); if (isNaN(breakpoint)) { $('#weReaderMsg').text('Invalid numeric value'); showButton; } else { api.postWithToken('options', {				action: 'options',				optionname: 'userjs-weReader',				optionvalue: breakpoint.toString			}).done(function {				$('#weReaderMsg').text('Reader mode activated for window widths under ' + breakpoint + ' pixels.');				showButton;			}); }	}); }); /* ]]> */ Configure Reader Mode

Activate Reader mode when window width is less than  pixels. 

Save Configure Reader mode activation breakpoint width.