importScript('MediaWiki:Gadget-popups.js');
importStylesheet('MediaWiki:Gadget-navpop.css');
importScript('User:Anomie/previewtemplatelastmod.js'); // Linkback: [[User:Anomie/previewtemplatelastmod.js]]
window.popupStructure = 'menus';
window.popupAdminLinks = true;
// initialize the array - only do this once
window.extraPopupFilters = [];
// define the function
function popupFilterHtmlTable (wikiText) {
if (/<table/i.test(wikiText)) return '<table>';
else return '';
}
// add the function for the array (you can repeat this for lots of functions)
extraPopupFilters.push(popupFilterHtmlTable);
// Normally features are enabled
var toFix = true;
// In special pages, histories and previews disable them
if ( mw.config.get( 'wgCanonicalNamespace' ) === 'Special' ||
$.inArray( mw.util.getParamValue( 'action' ), [ 'history', 'submit' ] ) !== -1)
{
toFix = false;
}
//
window.popupRedlinkRemoval = toFix;
window.popupFixRedirs = toFix;
window.popupFixDabs = toFix;
|