User:魔琴/glow

From Meta, a Wikimedia project coordination wiki

Glow is a global gadget which enables you to warn users with canned messages.

Report bugs here, here, or via email.

Install[edit]

Paste this code to Special:MyPage/global.js.

// [[File:Glow.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:魔琴/glow.js&action=raw&ctype=text/javascript');

Usage[edit]

A red "Glow" tab will appear when you're checking a user's userpages, talk pages or special pages relating to him/her. Click it and choose the right type and level you will warn the user with. You can add additional text to the end of the canned message. Don't sign; Glow will do it for you.

Known bugs[edit]

  • Does not support Flow. Maybe I will support it after June 2022.
  • Does not support Monobook. Maybe I will support it after June 2022. But seriously, who uses Monobook?
  • Does not support MinervaNeue. Ditto.

Working around[edit]

  • Before v0.0.7-alpha, most labels are undefined on lvwiki.
    Temporary Workaround: Paste the install code (above) in the browser console. It will fix it. Don't know why.
    Update: v0.0.5-alpha, when users click the Glow panel on lvwiki, Glow will add a warning ([Glow] Glow won't work properly on Latvian Wikipedia...) and the code to be pasted to the console. Copy the code which would be the last one in the console and paste it there. It saves time that way. (v0.0.6-alpha removed the function.)
    YesY Working around: on v0.0.7-alpha, the messages will load twice on lvwiki.

Update history[edit]

v0.0.1-alpha 2022-03-16
v0.0.2-alpha 2022-03-19 edited default text
v0.0.3-alpha 2022-03-20 fixed default text of level2
v0.0.4-alpha 2022-04-03 Summaries of 4im warnings are written correctly as '4im' instead of '5' for better comprehensivity.
v0.0.5-alpha 2022-04-05 lvwiki support
v0.0.6-alpha 2022-04-05 lvwiki fixed
v0.0.7-alpha 2022-04-05 lvwiki fixed (with a workaround)
v1.0.0       2022-07-04 Split the core module