MediaWiki:Common.js: Difference between revisions

From Rejoice in the Catholic Faith
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: →‎Enable Reference Previews: mw.loader.using('ext.popups', function() { mw.hook('ext.popups.event').add(function() { mw.popups.config.enableReferencePreviews = true; }); })")
 
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


 
/* 5/22/24: added script to load reference previews per bingbot, but didn't work */
 
/* Enable Reference Previews */
mw.loader.using('ext.popups', function() {
    mw.hook('ext.popups.event').add(function() {
        mw.popups.config.enableReferencePreviews = true;
    });
})

Latest revision as of 09:24, 22 May 2024

/* Any JavaScript here will be loaded for all users on every page load. */

/* 5/22/24: added script to load reference previews per bingbot, but didn't work */