diff --git a/editcheck/modules/init.js b/editcheck/modules/init.js index 43a8419658..45f422fc30 100644 --- a/editcheck/modules/init.js +++ b/editcheck/modules/init.js @@ -176,7 +176,8 @@ if ( mw.config.get( 'wgVisualEditorConfig' ).editCheckTagging ) { if ( ( mw.config.get( 'wgVisualEditorConfig' ).editCheck && mw.editcheck.accountShouldSeeEditCheck( mw.editcheck.config.addReference ) ) || // ecenable will bypass normal account-status checks as well: - new URL( location.href ).searchParams.get( 'ecenable' ) + new URL( location.href ).searchParams.get( 'ecenable' ) || + !!window.MWVE_FORCE_EDIT_CHECK_ENABLED ) { var saveProcessDeferred; mw.hook( 've.preSaveProcess' ).add( function ( saveProcess, target ) { diff --git a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetLoader.js b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetLoader.js index 69d7442c68..a6f245ebf6 100644 --- a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetLoader.js +++ b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetLoader.js @@ -37,7 +37,7 @@ modules.push( 'ext.visualEditor.mwwikitext' ); } - var editCheck = conf.editCheck || !!url.searchParams.get( 'ecenable' ); + var editCheck = conf.editCheck || !!url.searchParams.get( 'ecenable' ) || !!window.MWVE_FORCE_EDIT_CHECK_ENABLED; if ( conf.editCheckTagging || editCheck ) { modules.push( 'ext.visualEditor.editCheck' ); }