Jump to content

User:PiRSquared17/rcexpander.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PiRSquared17 (talk | contribs) at 03:20, 6 March 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Expand all grouped RC/Watchlist entries. (Credit to [[m:User:PiRSquared17]]
var enhancedToggle = function() {
	$('.mw-enhancedchanges-arrow').trigger( 'click' );
};
$(window).load(
	function() {
		$('<a href="javascript:enhancedToggle()">± (expand/collapse)</a>').appendTo('#mw-watchlist-options, .rcoptions');
		enhancedToggle();
	}
);