Корбар:Aidan Kehoe/monobook.js: Тафовут байни таҳрирҳо
Content deleted Content added
Aidan Kehoe (баҳс | ҳисса) Toolbox second. |
Aidan Kehoe (баҳс | ҳисса) Move the logo to the bottom. |
||
Сатри 22: | Сатри 22: | ||
} |
} |
||
} |
} |
||
function menu_move_to_bottom (menu_name) |
|||
{ |
|||
menu = document.getElementById(menu_name); |
|||
if (menu) { |
|||
p = menu.parentNode; |
|||
p.removeChild(menu); |
|||
p.insertAfter( menu, p.lastChild ); |
|||
} |
|||
} |
|||
addOnloadHook(function (){ |
addOnloadHook(function (){ |
||
menu_names = [ |
menu_names = [ |
||
Сатри 31: | Сатри 42: | ||
menu_move_to_top(menu_name); |
menu_move_to_top(menu_name); |
||
} |
} |
||
menu_move_to_bottom ('p-logo'); |
|||
}); |
}); |
Нусха 17:45, 12 ноябри 2009
// [[User:Zocky/PicturePopups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Zocky/PicturePopups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Zocky/LanguageLinks.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Zocky/LanguageLinks.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Blue-Haired_Lawyer/footnote_popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function menu_move_to_top(menu_name) {
menu = document.getElementById(menu_name);
if (menu) {
p = menu.parentNode;
p.removeChild(menu);
p.insertBefore( menu, p.firstChild );
}
}
function menu_move_to_bottom (menu_name)
{
menu = document.getElementById(menu_name);
if (menu) {
p = menu.parentNode;
p.removeChild(menu);
p.insertAfter( menu, p.lastChild );
}
}
addOnloadHook(function (){
menu_names = [
"p-lang",
"p-tb", // toolbox
"p-search", // search box
];
while ( menu_name = menu_names.pop() ) {
menu_move_to_top(menu_name);
}
menu_move_to_bottom ('p-logo');
});