- Reset user preferences on https://en.wikipedia.org/wiki/Special:Preferences
- View source of Main_Page (hard refresh).
- Enable or disable one of the gadgets and save preferences.
- View source of Main_Page again (hard refresh).
Expected
A small blob with basically just the one preference I changed, and maybe a small number of per-account overrides that are set by a hook to give some or all logged-in users a default-but-not-really-default setting.
Actual
mw.user.options.set({ "enotifusertalkpages":0, "cx-entrypoint-fd-status":"shown", "echo-subscriptions-email-edit-user-talk":0 });
mw.user.options.set({ "VectorSkinVersion": "1", "advancedsearch-disable": 0, "betafeatures-auto-enroll": 0, "cx": 0, "cx-entrypoint-fd-status": "shown", "discussiontools-betaenable": 0, "enotifusertalkpages": 0, "flaggedrevswatch": 0, "gadget-Blackskin": 0, "gadget-BugStatusUpdate": 0, "gadget-CollapsibleNav": 0, "gadget-CommentsInLocalTime": 0, "gadget-DebugMode": 0, "gadget-DisambiguationLinks": 0, "gadget-DotsSyntaxHighlighter": 0, "gadget-ExternalSearch": 0, "gadget-GoogleTrans": 0, "gadget-HideCentralNotice": 0, "gadget-HideFundraisingNotice": 0, "gadget-HideInterwikiSearchResults": 0, "gadget-HotCat": 0, "gadget-ImageAnnotator": 0, "gadget-JustifyParagraphs": 0, "gadget-MenuTabsToggle": 0, "gadget-MobileMaps": 0, "gadget-Navigation_popups": 0, "gadget-NewImageThumb": 0, "gadget-NoAnimations": 0, "gadget-NoSmallFonts": 0, "gadget-OldDiff": 0, "gadget-PageDescriptions": 0, "gadget-PrettyLog": 0, "gadget-PrintOptions": 0, "gadget-Prosesize": 0, "gadget-ProveIt": 0, "gadget-ProveIt-classic": 0, "gadget-RTRC": 0, ... "growthexperiments-homepage-enable": 0, "growthexperiments-homepage-pt-link": 0, "language-local-exception": 0, "popupsreferencepreviews": 0, "rcshowwikidata": 0, "revisionslider-disable": 0, "skin-local-exception": 0, "tmh-videojs": 0, "twocolconflict": 0, "echo-subscriptions-email-edit-user-talk": 0 });
Questions
Are these actually all different from the user.defaults blob served to unregistered users?
Which are redundant?
How come they get copied to every user account?
This might be related to recent rectoring to improve the way preferences are fetched and stored (T280220), /cc @tstarling @Pchelolo