User:WhitePhosphorus/active sysops
Active sysops shows the number of active (one edit or log entry in the last 3/7/60 days) administrators and it can mark global sysop wikis. It uses data from the Toolforge.
The script (and this page as well) is a fork of Hoo man's. However it is more like a complete redesigning rather than just a fork with minor changes. Please note that it is still in beta test, so everything is under active development and subject to change. If you have any ideas or find a bug, feel free to post here.
The backend uses a brand new design, based on EventStreams to fetch real-time activities of admins on all wikis. The code repository will be available on GitHub soon.
Installation
editTo use active sysops, you just have to paste this code in your Special:Mypage/common.js (or into your Special:Mypage/global.js if you want to use it project wide):
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/active_sysops.js&action=raw&ctype=text/javascript');
Afterwards you may have to clear your cache:
How to clear the cache
|
---|
Note: After publishing, you may have to bypass your browser's cache to see the changes.
|
If you want a global usage but feel like opting-out the script on some wikis, you can use this code instead:
if (!(['enwiki', 'metawiki'].includes(mw.config.get('wgDBname')))) {
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/active_sysops.js&action=raw&ctype=text/javascript');
}
Change 'enwiki', 'metawiki'
to any comma-separated list of database names.
What's new
edit- Red/green button for Non-GS/GS wikis, click to see details and configs
- Showing sysop count in the format of (a/b), where a is active sysop count and b is the number of all the sysops on that wiki
- Listing admins with recent edits, rather than only logs
- Also listing their names so you may contact them quickly
- Providing useful links to contact local admins, like wikidata etc.
- Draggable interface and the location will be saved on all your devices
CORS Error
editIf you are reading this section, likely you have followed a warning on some wikis reading "Some features of active_sysops.js are not available on this wiki". This is because the site you are visiting is not included in the CORS trusted origin list of WMF wikis. There are few things we can do unfortunately. The script will be unable to fetch data from metawiki and wikidata, so AN/RAA/AIV links will be unavailable, and your custom preferences cannot be read and saved. Other unexpected behaviors may happen as well. Sites prone to this including various fishbowl/chapter/WMF wikis.
Users
editTry searching.