User:Cat-five/vector.js

//__NOINDEX__ importScript('User:Gary King/nominations viewer.js'); // Nominations Viewer // importScript('User:Gary King/reviewer summary.js'); // Reviewer Summary // // // importScript('User:Lupin/popups.js'); // Navigation Popups -- User:Lupin/popups.js  - DEPRECIATED IN FAVOR OF POPUPS WIDGET, NO LONGER IN USE // // In theory options for Navigation Popup // popupRedlinkRemoval = true; // // // importScript('User:Ais523/watchlistnotifier.js'); // Watchlist Notifier // // // COMMENTED OUT, JUST TO WEIRD NOT HAVING A SIDEBAR // importScript("User:PleaseStand/hide-vector-sidebar.js"); // // importScript('User:TheDJ/foldrefs.js'); // Folded References // // importScript('User:TheDJ/usagecollapse.js'); // Usage Collapser // // importScript('User:Gary King/stock symbol formatter.js'); // Stock Symbol Formatter // // importScript('User:Ais523/votesymbols.js'); // Vote Symbols // // importScript('User:Ioeth/friendly.js'); // Friendly tool suite // // importScript('User:AzaToth/twinkle.js'); // Twinkle tool suite // if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS TwinkleConfig.watchProdPages                           =       true; TwinkleConfig.watchRevertedPages                       =       []; TwinkleConfig.watchSpeedyPages                         =       [ 'g3', 'g5', 'g10', 'g11', 'g12', 't1' ]; TwinkleConfig.watchWarnings                            =       false; // // importScript('User:AWeenieMan/furme.js'); // Furme nonfree image use template tools // // importScript('User:Lupin/recent2.js'); // Lupin's recent changes tool // // importScript('User:Dr pda/persondata.js'); //User:Dr pda/persondata.js // Option to view person data // // // TESTING - script to show megapixels of an image on image pages --- COPY AND USE AT YOUR OWN PERIL // // Calculate Megapixels on image pages // function calculateMegapixels { var data = $('.fileInfo').text; pixel_filter = /([\d,]+) × ([\d,]+)/; if(pixel_filter.test(data)) { pixel_filter.exec(data); var wt = RegExp.$1, ht = RegExp.$2 , w = parseFloat( wt.replace(/,/,'') ) , h = parseFloat( ht.replace(/,/,'') ); $('.fileInfo').append( $(' ').text(' (' + ((w*h)/(1024.0*1024.0)).toFixed(2) + ' Megapixel)' ) ); } } if( mw.config.get('wgAction') == 'view' && mw.config.get('wgNamespaceNumber') == 6 ) $(document).ready(calculateMegapixels);

// __NOINDEX__ // //