Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/*
task: delete items from the left hand side menu that i don't use
tested in firefox only
*/
$(function (){
if(typeof document.getElementById("n-mainpage-description") !== "undefined"){
document.getElementById("n-mainpage-description").replaceWith(
document.getElementById("n-recentchanges")
);
}
document.getElementById("p-Mitmachen").remove(); // "participate"
// the previous command includes the following
//document.getElementById("n-Artikel-verbessern").remove(); // "improve articles"
//document.getElementById("n-Neuerartikel").remove(); // "create article"
//document.getElementById("n-portal").remove(); // "community portal"
//document.getElementById("n-help").remove();
//document.getElementById("n-contact").remove();
//document.getElementById("n-sitesupport").remove(); // "donate"
// delete "switch to old look"
const mw_panel_children = document.getElementById("mw-panel").children;
for(let i = 0; i < mw_panel_children.length; ++i){
const elem_content = mw_panel_children[i].innerHTML;
if(elem_content.includes("Switch to old look")
|| elem_content.includes("Language")
){
mw_panel_children[i].remove();
}
}
// this needs a time-out, because the link is loaded delayed
setTimeout(function(){
if(typeof document.getElementById("t-wikibase") !== "undefined"){
const tools_children = document.getElementById("t-wikibase").parentNode.children;
for(let i = 0; i < tools_children.length; ++i){
const elem_content = tools_children[i].innerHTML;
if(elem_content.includes("Edit interlanguage links")){
tools_children[i].remove();
}
}
}
}, 1000);
});