User:Rzuwig/global.js
Appearance
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Kolorowanie nicków
mw.loader.load('https://de.wikipedia.org/w/index.php?title=User:Rzuwig/Gadget-colored-nicknames.js&action=raw&ctype=text/javascript');
// Wikidata info
mw.loader.load("https://www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");
// Usuń interwiki
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');
// Edit count
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Rzuwig/Gadget-quickeditcounter.js&action=raw&ctype=text/javascript');
// Markblocked
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
// Odśwież
jQuery(document).ready(function() {
mw.util.addPortletLink('p-cactions', mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'Odśwież', 'ca-purge', 'Wyczyść pamięć podręczną dla tej strony');
});
// Skrypt wyróżnia na stronie Ostatnich zmian utworzenie nowych stron
//
jQuery( document ).ready( function() {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) != "Recentchanges" ) {
return;
}
var lista = document.getElementsByTagName( 'abbr' );
for ( var i = 0; i < lista.length; i++ ) {
var wiersz = lista[i];
if ( ( wiersz ) && ( wiersz.className == 'newpage' ) && ( wiersz.parentNode ) && ( wiersz.parentNode.childNodes ) ) {
wiersz.parentNode.style.backgroundColor = "#93F95F";
var d = wiersz.parentNode.childNodes;
for ( var j = 0; j < d.length; j++ ) {
if ( d[j] && ( d[j].style ) ) d[j].style.backgroundColor = "#93F95F";
}
}
}
} );
// Linter helper
mw.loader.load('https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Wargo/Skrypty/linter_helper.js&action=raw&ctype=text/javascript');