Difference between revisions 9960 and 9961 on newikibooks

/**
 * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
 * loaded for all users on every wiki page. If possible create a gadget that is
 * enabled by default instead of adding it here (since gadgets are fully
 * optimized ResourceLoader modules with possibility to add dependencies etc.)
 *
 * Since Common.js isn't a gadget, there is no place to declare its
 * dependencies, so we have to lazy load them with mw.loader.using on demand and
(contracted; show full) * Maintainers: [[User:TheDJ]]
 */
if ( document.location && document.location.protocol === 'https:' ) {
    /* New secure servers */
    importScript( 'MediaWiki:Common.js/secure new.js' );
}


/**
 * Description: Removes ArticleFeedback related cookies from clients.
 * Can be removed in a couple of weeks to a month or so.
 * Maintainers: [[User:Reedy]]
 */
var match, re = /[\S]*articleFeedback[^=]*/g;
while ( ( match = re.exec( document.cookie ) ) !== null ) {
    document.cookie = match + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;';
}

/* End of mw.loader.using callback */
} );
/* DO NOT ADD CODE BELOW THIS LINE */