User:Krinkle/Scripts/CVNSimpleOverlay
Languages: English • Nederlands
Description [edit]
This script scans all .mw-userlink elements on the page (such as in the recent changes, watchlist, page history and diff-links), the current page name and (if available) the current target username (ie. the username when viewing a user(talk)page, log and contributions page). This data is then checked against the CVN API and the returned data is put on the page.
Not only is it handy to quickly spot if there's been an edit on your Watchlist or page history by a blacklisted IP-adress. It's also works in Diff-pages, so if you click the diff-link of an edit by a blacklisted user in #cvn-swconnect and wonder why the user is blacklisted: Click the link and hover the username on-wiki and find out without having to copy/paste the username into the channel for a "intel"-command to the bot.
Install [edit]
- Paste this code in your vector.js:
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js&action=raw&ctype=text/javascript');
or monobook.js:Please don't use this in Monobook. It won't work, it is especially made for Vector.
- Please leave the
[[File:Krinkle_CVNSimpleOverlay_wiki.js]]in for statistics+
Done :-)
If nothing appears, be sure to verify that you've put the above code on the wiki you use the tool on, not per se here on Meta. Note that this tool is optimized for WebKit (Safari, Chrome) browsers. It should also work fine in Mozilla (Firefox). Internet Explorer will not be supported.
Also clear your cache and do a hard refresh. If you encounter any issues, please let me know!
|
How to clear cache
|
|---|
|
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences. |
Contents |
Examples
External usage
For applications outside wikis, there is also a simplified version at CVNSimpleOverlay.js that you can include on your page like:
<script src="http://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay.js&action=raw&ctype=text/javascript"></script>
And it will scan for all .mw-username elements on the page and highlight blacklisted ones and adds a tooptip to them.
Feedback
If you experiences any issues, have suggestions for how something could be better, have a good idea for a feature request – or want to report a bug ? Please leave a message on my Tools-talkpage.



