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 17:39, 15 September 2013 (.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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').click(); };
$(window).load(
	function() {
		$('<a href="javascript:enhancedToggle()">± (expand/collapse)</a>').appendTo('#mw-watchlist-options, .rcoptions');
		enhancedToggle();
	}
);