User:Tarest/vector.js

// User:Lupin/popups.js

importScript('User:Lupin/popups.js');

extraPopupFilters=[];

//Returns Polish translation of link. For example on page http://en.wikipedia.org/wiki/Islam link "Muhammad" //will be translated to "Mahomet". Google Translate will not translate this. function popupFilterTranslation(wikiText) { regexp = new RegExp("\\[\\[pl\:(.+)\\]\\]", ""); array = regexp.exec(wikiText); return " " + ((array!=null)?array[1]:""); };

// add the function to the array (you can repeat this for lots of functions) extraPopupFilters.push(popupFilterTranslation);