User:Lövberg/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.
function myAddOnloadHook(code) {
if (document.readyState == "complete")
code();
else
$(window).on('load', code);
}
function renameGUIElement(id, text, tag) {
var elem = document.getElementById(id);
if (!tag) tag = 'A';
if (elem) elem.getElementsByTagName(tag)[0].innerHTML = text;
}
appendCSS('#ca-view { display:none; }');
myAddOnloadHook(function(){
renameGUIElement('ca-history','Versionen');
renameGUIElement('ca-addsection','+'); // Zurück zum Pluszeichen
renameGUIElement('pt-logout','X');
renameGUIElement('pt-mytalk','Diskussion');
renameGUIElement('pt-mycontris','Beiträge');
renameGUIElement('t-recentchangeslinked','Verlinkte Änderungen');
});
NavigationBarShowDefault = 100;