Page MenuHomePhabricator

Enhanced recent changes - add a method to Auto-expand all entries, without requiring user.js changes
Open, Needs TriagePublic

Description

Enhanced recent changes - I've loved the feature ever since adding this code to my [[Special:MyPage/common.js]] (or global.js)

// Auto-Expand all grouped RC/Watchlist entries.
$( function () { $('.mw-enhancedchanges-arrow').click(); } );

It auto-expands all the groups (as if auto-clicking all the arrows/triangles), in RC/Watchlist. I consider it integral/necessary.

Request: Could (something like) that be added as either:

  • a new user-preference
  • a toggle button on the RC/Watchlist pages (so that we only have to click once, instead of once-per-item)
  • something else?

Event Timeline

Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity subscribed.

With the upgrade to jQuery3, the previous code now generates a deprecation warning.

This alternative works:

$(window).on('load',function() { $('.mw-enhancedchanges-arrow').click(); });

I'll update the version used in the task description.

Ping @PiRSquared17 in case you want to update your own .js (where most of us got it from :-) )

Given that the new filters are available by default in Recent Changes, would the solution for T176555 be enough here? Any thoughts @jmatazzoni ?

! In T109103#4305133, @Pginer-WMF wrote:

Given that the new filters are available by default in Recent Changes, would the solution for T176555 be enough here? Any thoughts @jmatazzoni ?

The question is whether we should continue to add new features to the old interface. What do people think? I don't believe this is a difficult change to make per se. But perhaps it is a bad precedent?

I think T176555 might be enough, as it is part of core for 3rd-party users, and is/will be the default for RC/Watchlist on Wikimedia wikis.