Difference between revisions of "MediaWiki:Monobook.js"
Jump to navigation
Jump to search
imported>Tinker (Created page with "→Any JavaScript here will be loaded for users using the MonoBook skin: →Move top tabs inside body content: addOnloadHook(function () { content = document.getEleme...") |
imported>Tinker |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for users using the MonoBook skin */ | /* Any JavaScript here will be loaded for users using the MonoBook skin */ | ||
/* Move top tabs inside body content */ | /* Move top tabs inside body content */ | ||
+ | |||
+ | //addOnloadHook(function () { | ||
+ | // content = document.getElementById("column-content"); // Find the main content column | ||
+ | // | ||
+ | // footer = document.getElementById("footer"); // Find the footer | ||
+ | // footer.parentNode.removeChild(footer); // Remove the footer from the global wrapper | ||
+ | // content.appendChild(footer); // Place footer at the end of the content column; | ||
+ | // | ||
+ | // tabs = document.getElementById("p-cactions"); // Find the top tab list | ||
+ | // tabs.parentNode.removeChild(tabs); // Remove the tab list from the side column | ||
+ | // content.insertBefore(tabs,content.firstChild); // Place tab list at the beginning of the content column | ||
+ | //}); | ||
+ | |||
addOnloadHook(function () { | addOnloadHook(function () { | ||
Line 12: | Line 25: | ||
tabs.parentNode.removeChild(tabs); // Remove the tab list from the side column | tabs.parentNode.removeChild(tabs); // Remove the tab list from the side column | ||
content.insertBefore(tabs,content.firstChild); // Place tab list at the beginning of the content column | content.insertBefore(tabs,content.firstChild); // Place tab list at the beginning of the content column | ||
+ | |||
+ | personal = document.getElementById("p-personal"); // Find the personal links list | ||
+ | personal.parentNode.removeChild(personal); // Remove the personal links list from the side column | ||
+ | content.insertBefore(personal,content.firstChild); // Place personal links list at the beginning of the content column | ||
}); | }); |
Latest revision as of 16:59, 21 July 2016
/* Any JavaScript here will be loaded for users using the MonoBook skin */
/* Move top tabs inside body content */
//addOnloadHook(function () {
// content = document.getElementById("column-content"); // Find the main content column
//
// footer = document.getElementById("footer"); // Find the footer
// footer.parentNode.removeChild(footer); // Remove the footer from the global wrapper
// content.appendChild(footer); // Place footer at the end of the content column;
//
// tabs = document.getElementById("p-cactions"); // Find the top tab list
// tabs.parentNode.removeChild(tabs); // Remove the tab list from the side column
// content.insertBefore(tabs,content.firstChild); // Place tab list at the beginning of the content column
//});
addOnloadHook(function () {
content = document.getElementById("column-content"); // Find the main content column
footer = document.getElementById("footer"); // Find the footer
footer.parentNode.removeChild(footer); // Remove the footer from the global wrapper
content.appendChild(footer); // Place footer at the end of the content column;
tabs = document.getElementById("p-cactions"); // Find the top tab list
tabs.parentNode.removeChild(tabs); // Remove the tab list from the side column
content.insertBefore(tabs,content.firstChild); // Place tab list at the beginning of the content column
personal = document.getElementById("p-personal"); // Find the personal links list
personal.parentNode.removeChild(personal); // Remove the personal links list from the side column
content.insertBefore(personal,content.firstChild); // Place personal links list at the beginning of the content column
});