Jump to content

User:Beetstra/Gadget-Spamblacklistlog.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Beetstra (talk | contribs) at 05:24, 7 December 2016 (OK). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/**
 * Support for better display of log entries at en.wikipedia.
 * Tested only in Chrome.
 *
 * Author: [[:User:Beetstra]], December 2016
 * License: Quadruple licensed GFDL, GPL, LGPL and Creative Commons Attribution 3.0 (CC-BY-3.0)
 *
 * Version history:
 *
 * - start version on handling spamblacklistlog - 20161207
*/
/*jshint unused:true, eqnull:true, browser:true, white:true, indent:4 */
/*global mw, $ */
// <nowiki>
(function () {
    // Guard against double inclusions
    if (typeof window.BLLogHandler !== 'undefined') {
        return;
    }
    var conf = mw.config.get([
        'wgUserGroups',
        'wgPageName',
        'wgServer',
        'wgScriptPath',
        'wgUserName'
    ]);

    if ((conf.wgPageName !== 'Special:Log')) {
        return;
   }}());
// </nowiki>
// [[Category:Wikipedia scripts|BLLogHandler.js]]