User:Prahlad balaji/vector.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 6:
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 '&lt;table&gt;';
else return '';
};
 
// add the function for the array (you can repeat this for lots of functions)
extraPopupFilters.push(popupFilterHtmlTable);