User:Shirayuki/vector.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
addOnloadHook(function() {
$('#ca-talk').each(function() {
if (!$(this).hasClass('new')) { $(this).css({backgroundColor:'#fcc',backgroundImage:'none'}); }
});
setInterval(function() {
$('.mw-translate-edit-tmsugs').find('a').each(function() {
var href = $(this).attr('href');
if (href == undefined) return;
if (href.match(/Blockly[:-]/i)) { $(this).html('B'); }
if (href.match(/EOL[:-]/i)) { $(this).html('EO'); }
if (href.match(/Etherpadlite[:-]/i)) { $(this).html('Ep'); }
if (href.match(/FreeCol[:-]/i)) { $(this).html('FC'); }
if (href.match(/FUDforum[:-]/i)) { $(this).html('Ff'); }
if (href.match(/FUEL[:-]/i)) { $(this).html('FU'); }
if (href.match(/iHRIS[:-]/i)) { $(this).html('iH'); }
if (href.match(/Intuition[:-]/i)) { $(this).html('In'); }
if (href.match(/Kiwix[:-]/i)) { $(this).html('K'); }
if (href.match(/MathJax[:-]/i)) { $(this).html('MJ'); }
if (href.match(/MediaWiki[:-]/i)) { $(this).html('M'); }
if (href.match(/Mifos[:-]/i)) { $(this).html('Mf'); }
if (href.match(/Mwlib[:-]/i)) { $(this).html('Ml'); }
if (href.match(/Mantis[:-]/i)) { $(this).html('Mn'); }
if (href.match(/Mozilla[:-]/i)) { $(this).html('Mz'); }
if (href.match(/Okawix[:-]/i)) { $(this).html('Ok'); }
if (href.match(/OpenImages[:-]/i)) { $(this).html('OI'); }
if (href.match(/OSM[:-]/i)) { $(this).html('OS'); }
if (href.match(/Pywikipedia[:-]/i)) { $(this).html('P'); }
if (href.match(/Shapado[:-]/i)) { $(this).html('Sh'); }
if (href.match(/StatusNet[:-]/i)) { $(this).html('SN'); }
if (href.match(/Translations[:-]/i)) { $(this).html('Tr'); }
if (href.match(/Vicuna[:-]/i)) { $(this).html('V'); }
if (href.match(/Wikimedia[:-]/i)) { $(this).html('W'); }
if (href.match(/Wikia[:-]/i)) { $(this).html('Wa'); }
if (href.match(/WikiReader[:-]/i)) { $(this).html('WR'); }
});
},1000);
});