You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables the gadget, so that subsequently, the gadget is fetched directly w/o going through the userscript page. This leads to more accurate gadget usage statistics. Also, this makes the load experience consistent across all users since I guess gadgets are loaded before userscripts.
user.options values are string '1' for user-enabled gadgets, number 1 for default-enabled gadgets, and 0 for default gadgets disabled by user. Non-default gadgets that are not enabled aren't there in the user.options object at all. When accessed using mw.user.options.get(), it gives null.
The text was updated successfully, but these errors were encountered:
@azatoth Are you opposed to this? It's heavy-handed but would be a marginal improvement. Another option would be to use mw.notify to annoy folks until they change to the gadget.
I've gone and done this. I considered just importing the notification note (like the submodules do) but figured it'd be simpler to just take care of it for folks, given how long it's "just worked."
Yesterday, I updated the list of most imported scripts. It turns out that User:AzaToth/twinkle.js remains the 2nd-most installed userscript on the pedia with a whooping 5508 installs!
I suggest that the content of User:AzaToth/twinkle.js be changed to
This enables the gadget, so that subsequently, the gadget is fetched directly w/o going through the userscript page. This leads to more accurate gadget usage statistics. Also, this makes the load experience consistent across all users since I guess gadgets are loaded before userscripts.
Ping @azatoth.
user.options
values are string'1'
for user-enabled gadgets, number1
for default-enabled gadgets, and0
for default gadgets disabled by user. Non-default gadgets that are not enabled aren't there in the user.options object at all. When accessed usingmw.user.options.get()
, it givesnull
.The text was updated successfully, but these errors were encountered: