User:PiRSquared17/rcexpander.js: Difference between revisions
Appearance
Content deleted Content added
PiRSquared17 (talk | contribs) mNo edit summary |
PiRSquared17 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
⚫ | |||
// Expand all grouped RC/Watchlist entries. (Credit to [[m:User:PiRSquared17]] |
|||
mw.hook('structuredChangeFilters.ui.initialized').add(function() { |
|||
var enhancedToggle = function() { |
|||
$('.mw-enhancedchanges-arrow').trigger( 'click' ); |
|||
}; |
} ); |
||
⚫ | |||
$(window).load( |
|||
⚫ | |||
$('<a href="javascript:enhancedToggle()">± (expand/collapse)</a>').appendTo('#mw-watchlist-options, .rcoptions'); |
|||
enhancedToggle(); |
|||
} |
|||
⚫ |