Jump to content

User:Prahlad balaji/vector.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Wikipedia:Tools/Navigation popups
importScript('MediaWiki:Gadget-popups.js');
importStylesheet('MediaWiki:Gadget-navpop.css');
importScript( 'User:Evad37/MoveToDraft.js' ); // Backlink: [[User:Evad37/MoveToDraft]]

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 '&lt;table&gt;';
	else return '';
}
/**
 * NICE gadget 
 *  
 * This gadget is part of a research study being conducted by the 
 * GroupLens Research lab at the University of Minnesota.  Please see 
 * the consent form at http://wikipedia.grouplens.org/NICE/consent.  
 * If you have questions/comments/suggestions, please direct them to 
 * User:EpochFail. 
 **/
importScript("User:EpochFail/No_Biting.js");

// 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;


importScript('User:TheDJ/qui.js');
importScript('User:Anomie/unsignedhelper.js'); // Linkback: [[User:Anomie/unsignedhelper.js]]
// [[User:Zocky/PicturePopupsVector.js]]
importScript('User:Zocky/PicturePopupsVector.js');
// [[User:Zocky/PicturePopupsVector.js]]
importScriptwindow.picturePopupsWidth = 597;
window.picturePopupsHeight = 622;
// [[User:Zocky/PicturePopups.js]]
mw.loader.load('https://wiki.riteme.site/w/index.php?title=User:Zocky/PicturePopups.js' 
             + '&action=raw&ctype=text/javascript');
importScript( 'User:GregU/dashes.js' ); // Backlink: [[User:GregU/dashes.js]]
importScript( 'Wikipedia:Igloo/gloo.js' ); // Backlink: [[Wikipedia:Igloo/gloo.js]] // [[Wikipedia:Igloo]]