User:MarkS2/myskin.js

/* Plik z którego korzysta&#322;em znajdziesz tutaj: http://meta.wikipedia.org/wiki/User:Lupo/monobook.js */

function searchAtTop { /* Przemieszcza linki osobiste na sam&#261; góre menu. */ var contents  = document.getElementById('column-content'); var search = document.getElementById('p-search');

if (search != null) { search.parentNode.removeChild (search); search.id = 'get-' + search.id; contents.insertBefore(search, contents.firstChild); } }

function catlinksAtTop { /* Przemieszcza linki do kategorii przed tre&#347;&#263; artyku&#322;u. */ var contents  = document.getElementById('column-content'); var catlinks = document.getElementById('catlinks');

if (catlinks != null) { catlinks.parentNode.removeChild (catlinks); contents.insertBefore(catlinks, contents.firstChild); } } function languageAtTop { /* Przemieszcza linki do innych wikipedii przed tre&#347;&#263; artyku&#322;u. */ var contents  = document.getElementById('column-content'); var langlinks = document.getElementById('p-lang');

if (langlinks != null) { langlinks.parentNode.removeChild (langlinks); contents.insertBefore(langlinks, contents.firstChild); } } function navAtTop { /* Przemieszcza linki nawigacji na sam&#261; góre menu. */ var contents  = document.getElementById('column-one'); var navig = document.getElementById('p-nav');

if (navig != null) { navig.parentNode.removeChild (navig); navig.id = 'get-' + navig.id; contents.insertBefore(navig, contents.firstChild); } } function personalAtTop { /* Przemieszcza linki osobiste na sam&#261; góre menu. */ var contents  = document.getElementById('column-content'); var personal = document.getElementById('p-personal');

if (personal != null) { personal.parentNode.removeChild (personal); personal.id = 'get-' + personal.id; contents.insertBefore(personal, contents.firstChild); } }

function bottomTabs { /* Klonuje linki do edycji i 1 przenosi na sam dó&#322; artyku&#322;u */ var tabs = document.getElementById('p-cactions').cloneNode(true); /* Give all the named items new ids to avoid id clashes with the existing top "tabs". */ tabs.id = 'mytabs2'; var listitems = tabs.getElementsByTagName('LI'); for (i=0;i<listitems.length;i++) { if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id; } document.getElementById('column-content').appendChild(tabs); }

function accelerate { document.getElementById('searchInput').accessKey='S'; document.getElementById('n-randompage').accessKey='r'; }

function reformatMyPage { /* accelerate;*/ /*alert('Hi');*/ /* catlinksAtTop; */ /* languageAtTop;*/ /* navAtTop;*/ /* personalAtTop ;*/ /* bottomTabs;*/ /*searchAtTop;*/

} if (window.addEventListener) window.addEventListener("load",reformatMyPage,false); else if (window.attachEvent) window.attachEvent("onload",reformatMyPage);