User:MarkS2/myskin.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:MarkS2/myskin. This user script seems to have an accompanying .css page at User:MarkS2/myskin.css. |
/* Plik z którego korzystałem znajdziesz tutaj: http://meta.wikipedia.org/wiki/User:Lupo/monobook.js */
function searchAtTop() {
/* Przemieszcza linki osobiste na samą 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ść artykuł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ść artykuł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ą 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ą 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ół artykuł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);