User:Moskvax/monobook.js

/* This function is used to include scripts from other Wikipedia pages in mine. I got it from User:Quarl/monobook.js. */

function winc(s) { s = s.replace(/^\[\[/, ).replace(/\]\]$/, ); document.write(''); }

/* Included functions */

winc('User:Omegatron/monobook.js/addlink.js');        /* Adds links to lists on the page, such as the personal tools section */ winc('User:Omegatron/monobook.js/fixdiffwidth.js');   /* Cleans up the diff so that long lines don't explode the width of the page. */ winc('User:Omegatron/monobook.js/edittop.js');        /* Adds a link to edit the top (intro) section of an article */ winc('User:Omegatron/monobook.js/namedredirect.js');  /* Learning XMLHttpRequest while workarounding  218 */ /*winc('User:Omegatron/monobook.js/autolinker.js');     Make links and  clickable */ winc('User:Lupin/popups.js')

/* Add some extra tabs with different functionalities. */

winc('User:Omegatron/monobook.js/replacetab.js');              // Regex replacements in the text (from User:Trilobite/Tools) winc('User:Omegatron/monobook.js/unverified.js');              // Tag unverified images (from User:Trilobite/Tools) // winc('User:Omegatron/monobook.js/addsincetab.js');          // Shows difference between my last edit and current version (WikiProject User scripts/Scripts/Changes since I last edited) winc('User:Omegatron/monobook.js/dashfixer.js');               // Converts -- into — and so on (User:Omegatron) winc('User:Omegatron/monobook.js/unitformatter.js');           // Formats units according to SI (User:Omegatron) winc('User:Omegatron/monobook.js/mathcharacterfixer.js');      // Fixes up some math characters (not TeX) (User:Omegatron) winc('User:Omegatron/monobook.js/headingformattingfixer.js');  // Adds and removes whitespace to make formatting consistent and readable (User:Omegatron)

/* Move top tabs inside body content */

$(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 });