Community Central
Community Central
(test if the fix is still necessary)
(Undo revision 2745068 by DarthKitty (wall)--it is)
 
Line 8: Line 8:
 
//
 
//
 
// @see [[User:DarthKitty/references]]
 
// @see [[User:DarthKitty/references]]
/*
 
 
document.querySelectorAll(
 
document.querySelectorAll(
 
'.portable-infobox[data-item-name="User:DarthKitty/references"] p:empty'
 
'.portable-infobox[data-item-name="User:DarthKitty/references"] p:empty'
Line 14: Line 13:
 
node.remove();
 
node.remove();
 
});
 
});
*/
 
   
 
importArticles({
 
importArticles({

Latest revision as of 15:22, 13 March 2019

(function () {
    'use strict';

    // Remove empty paragraph tags from my shared "references" infobox, until
    // staff implement a proper fix. Hiding these elements with CSS isn't good
    // enough, because their very existence makes certain built-in selectors
    // invalid.
    //
    // @see [[User:DarthKitty/references]]
    document.querySelectorAll(
        '.portable-infobox[data-item-name="User:DarthKitty/references"] p:empty'
    ).forEach(function (node) {
        node.remove();
    });

    importArticles({
        type: 'script',
        articles: [
            'u:dev:MediaWiki:MassNullEdit/code.js',
            'u:dev:MediaWiki:SkinSwitchButton/code.js'
        ]
    });
})();