Page MenuHomePhabricator

Write script that will cause Suggestion Mode to be enabled by default
Closed, ResolvedPublic

Description

In T404470, we made Suggestion Mode available via URL parameter and in T399611, we will make Suggestion Mode available via Beta Features.

In the time between now and the beta feature release (T399611), we'd like to make it possible for someone to have Suggestion Mode available whenever they begin a VE edit session without manually having to append &ecenable=suggestions,experimental or &ecenable=suggestions each time.

Deployment timing

Via backport by EOD Tuesday, November 4, 2025.

Requirements

  1. A userscript, that when installed, would automatically append &ecenable=suggestions,experimental or &ecenable=suggestions to any VE edit session you initiate in the main namespace of a Wikipedia project.
  2. Within the user script, there ought to be a way for someone to specify which of the following two variations of Suggestion Mode they'd like to be enabled:
ParameterDescriptionURLNotes
&ecenable=suggestionsSuggestions based on Edit Checks currently deployedhttps://5ad535f7f7.catalyst.wmcloud.org/w/index.php?title=New_York_City&veaction=edit&ecenable=suggestionsAt present, the only Suggestion that available in this mode will be one based off of Reference Check
&ecenable=suggestions,experimentalSuggestions with all the experimental checks as wellhttps://5ad535f7f7.catalyst.wmcloud.org/w/index.php?title=New_York_City&veaction=edit&ecenable=suggestions,experimental

Event Timeline

Change #1200369 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable

https://gerrit.wikimedia.org/r/1200369

Change #1200369 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable

https://gerrit.wikimedia.org/r/1200369

Change #1201119 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.25] Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable

https://gerrit.wikimedia.org/r/1201119

Change #1201119 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.25] Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable

https://gerrit.wikimedia.org/r/1201119

Mentioned in SAL (#wikimedia-operations) [2025-11-03T21:37:30Z] <kemayo@deploy2002> Started scap sync-world: Backport for [[gerrit:1201119|Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable (T408890)]]

Mentioned in SAL (#wikimedia-operations) [2025-11-03T21:39:29Z] <kemayo@deploy2002> kemayo: Backport for [[gerrit:1201119|Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable (T408890)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-11-03T21:46:51Z] <kemayo@deploy2002> Finished scap sync-world: Backport for [[gerrit:1201119|Edit check: allow MWVE_FORCE_EDIT_CHECK_ENABLED to override ecenable (T408890)]] (duration: 09m 21s)

Okay, this script will now work: https://meta.wikimedia.org/wiki/User:DLynch_(WMF)/alwaysbesuggesting.js

You can either copy its contents to your own common.js or metawiki global.js, or add this to the same: mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:DLynch_(WMF)/alwaysbesuggesting.js&action=raw&ctype=text/javascript' );