Commons:Village pump/Proposals/Archive/2017/05

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Make VFC installation a Gadget

It has been raised many times recently that the loading of the script being semi-"broken". The issues could be summarized as:

  • Using global function addPortletLink which had recently been removed in favor of mw.util.addPortletLink. (eg. @LX and Wcam: case)
  • Somehow importScript returns HTMLScriptElement which replace the whole page into [object HTMLScriptElement] after clicking the link. (eg. @EugeneZelenko: case)
  • Module mediawiki.util loads unreliably with module user (which contains the user common.js), and cause a race condition where mw.util may be undefined and mw.util.addPortletLink would fail. (@Speravir: )
  • Importing old unmaintained user scripts which there is little we can do about them.

The current installation process is entirely done by adding some lines in user's own js files (usually their common.js), and this has various issues:

  • Low significance: MediaWiki devs do not usually consider anything in the User: namespace a blocker.
  • Code duplication / Low maintainability: When issues like those that happened recently, to fix them, every single common.js that are broken must be modified.
  • Ownership: Pages in User: namespace are generally considered a property of a user, and modifying someone else's common.js for bugfixes may be frowned upon.
  • User unfamiliarity: Not everyone is perfectly comfortable to mess with code. When many people encounter issues in those JS code, they are likely to have a hard time solving them.

Given the popularity of this script, I suggest to make the installation a gadget; to install the tool, instead of adding the few lines to your common.js, you check a checkmark in Special:Preferences#mw-prefsection-gadgets and save the preferences, and the "Perform batch task" link will appear in the sidebar as expected. This shall shall help solve the issues mentioned above. However, there will be downsides:

  • Enabling the gadget does not automatically resolve all the issues in common.js if you don't remove the original lines in common.js.
  • Enabling the gadget without removing the original lines in commons.js (if it works) will result in two "Perform batch task" links that both work at the same time.
  • Link text "Perform batch task" will not be customizable (some people call it "Mass nomination") (will be done with a global variable (i.e. window.something)
  • Advertising a tool that can be used for mass-vandalism. We could limit its visibility in Special:Preferences#mw-prefsection-gadgets to "autopatrolled" only, but they may discover this tool anyhow given its wide usage.

If the community decides that doing so is beneficial, I will be happy to implement it. --Zhuyifei1999 (talk) 18:09, 4 May 2017 (UTC)

 Support. I guess those who want customisation could still disable the gadget and install it the old way, and with a little bit of development, it should be possible to make the gadget customisable through personal js content, just like how AjaxQuickDelete allows you to add extra buttons. LX (talk, contribs) 18:19, 4 May 2017 (UTC)

Ok, a week has gone by, significant support, and not much concern besides that only autopatrolled shall see it. Implementing... --Zhuyifei1999 (talk) 07:15, 12 May 2017 (UTC)


✓ Done. New install instructions at Help:VisualFileChange.js#Step_0:_How_to_Install. (Well, in general the proposer shouldn't close a proposal, but I don't really see who else will do it) --Zhuyifei1999 (talk) 08:25, 12 May 2017 (UTC)

If someone would oppose because the closer is also the opener, then consider this closure as mine then. ;) Poké95 02:19, 13 May 2017 (UTC)
This section was archived on a request by: Speravir 22:04, 16 June 2017 (UTC)

RfC on enabling two-factor verification for all users

There's an RfC on enabling two-factor verification (2FA) for all users across all Wikimedia projects. Please vote and comment! --Rezonansowy (talk) 14:20, 29 May 2017 (UTC)

To clarify, this is a proposal to expand the optional ability to have all users to enable 2FA on their accounts. —MarcoAurelio 10:44, 30 May 2017 (UTC)

Remove yellow background from Tags

Hello, I propose to remove the yellow (Tag: 2017 wikitext editor) background from tags. Tags are widely used on commons and thus it is strange to have yellow stuff recent changes etc. Users can later change the color in theyr own common.css if needed. --Steinsplitter (talk) 14:59, 15 May 2017 (UTC)

@Ailura: I didn't proposed the removal of the feature, just to remove/change the yellow background to white. --Steinsplitter (talk) 11:14, 30 May 2017 (UTC)
The yellow background is the part i like. --Ailura (talk) 11:17, 30 May 2017 (UTC)