Корбар:Aidan Kehoe/monobook.js: Тафовут байни таҳрирҳо
Content deleted Content added
Aidan Kehoe (баҳс | ҳисса) No edit summary |
Aidan Kehoe (баҳс | ҳисса) Attempt to get languagelinks.js working for the English wikipedia for me again. |
||
Сатри 1: | Сатри 1: | ||
if (window.location.hostname.match(/(fa|ar|ur)\.wikipedia\.org$/)) { |
|||
document.write('<link rel="stylesheet" href="http://tg.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=Корбар%3AAidan_Kehoe%2FPersoArabic.css" type="text/css" media="all" />'); |
|||
} |
|||
// [[User:Zocky/PicturePopups.js]] |
|||
document.write('<script type="text/javascript" src="' |
|||
+ 'http://tg.wikipedia.org/w/index.php?title=User:Aidan_Kehoe/PicturePopups.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
// [[User:Zocky/LanguageLinks.js]] |
// [[User:Zocky/LanguageLinks.js]] |
||
document.write('<script type="text/javascript" src="' |
document.write('<script type="text/javascript" src="' |
||
+ 'http://tg.wikipedia.org/w/index.php?title=User:Aidan_Kehoe/LanguageLinks.js' |
+ 'http://tg.wikipedia.org/w/index.php?title=User:Aidan_Kehoe/LanguageLinks.js' |
||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
+ '&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>'); |
|||
addOnloadHook(function (){ |
|||
menu_names = [ |
|||
"p-lang", |
|||
"p-tb", // toolbox |
|||
"p-search", // search box |
|||
]; |
|||
while ( menu_name = menu_names.pop() ) { |
|||
menu = document.getElementById(menu_name); |
|||
if (menu) { |
|||
p = menu.parentNode; |
|||
p.removeChild(menu); |
|||
p.insertBefore( menu, p.firstChild ); |
|||
} |
|||
} |
|||
menu = document.getElementById('p-logo'); |
|||
if (menu) { |
|||
menu.style.display=('none'); |
|||
} |
|||
}); |