Page MenuHomePhabricator

Allow users to always enable safemode
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
Add an option to allow users to always enable safemode.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
This can be useful when:

  1. Debugging;
  2. Users don't trust interface administrators (of a wiki on a wiki farm, etc.).

Benefits (why should this be implemented?):
Users will not need to type ?safemode=1 multiple times when browsing.

Downstream task: https://phabricator.miraheze.org/T10368

Event Timeline

Restricted Application added subscribers: Reception123, Aklapper. · View Herald Transcript

Change 940156 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/core@master] Add an option to allow users to always enable safemode

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

Change 955736 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/extensions/Gadgets@master] Hide gadgets on Special:Preferences when forcesafemode=true

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

Change 955737 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/extensions/GlobalCssJs@master] Hide global CSS/JS on Special:Preferences when forcesafemode=true

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

Change 940156 merged by jenkins-bot:

[mediawiki/core@master] Add an option to allow users to always enable safemode

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

Change 955736 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Hide gadgets on Special:Preferences when forcesafemode=true

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

Change 955737 merged by jenkins-bot:

[mediawiki/extensions/GlobalCssJs@master] Hide global CSS/JS on Special:Preferences when forcesafemode=true

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

matmarex assigned this task to Dringsim.

I wonder if this should be announced in Tech News? Even though probably very few users will want to use it, it could be helpful to make some power users aware of it – those with advanced permissions that visit many wikis often (like stewards), and those who debug on-wiki scripts often. Or maybe there's another venue where it should be announced?

@matmarex Please could you suggest what wording and links the Tech News entry should use? Thanks!
(P.s. Drafts always help, otherwise I have to read and understand entire task-threads!
And in this case, I'm baffled! I.e. How do people turn it on/off? Where is it documented?)

@Quiddity The "always enable safe mode" option is in the "advanced options" section on the appearance tab on Special:Preferences.

Thanks! I've added an entry to https://meta.wikimedia.org/wiki/Tech/News/2023/40
If any changes are needed to that, please do so (or tell me what to change) within the next ~25 hours, after which it will be frozen for translation.

I've tweaked the entry to add a bit more context. It now says:

There is a new user preference for "Always enable safe mode". This setting will make pages load without including any on-wiki JavaScript or on-wiki stylesheet pages. It can be useful for debugging broken JavaScript gadgets. [1]