User:Bigdelboy/common.js

$.when( mw.loader.using(['mediawiki.util','mediawiki.api']), $.ready).done( function {    if (mw.config.get("wgNamespaceNumber") % 2 == 0 && mw.config.get("wgNamespaceNumber") != 4)        // not a talk page and not project namespace        return;    if (mw.config.get("wgNamespaceNumber") == -1)        // is a special page        return;    return alert("You are on a talk page");    // Bits from User:Σ/Testing facility/Archiver on the en wiki }