Корбар:Aidan Kehoe/monobook.js: Тафовут байни таҳрирҳо
Content deleted Content added
Aidan Kehoe (баҳс | ҳисса) Better method for commenting this out. |
Aidan Kehoe (баҳс | ҳисса) Fix a syntax error. |
||
Сатри 45: | Сатри 45: | ||
for (sheetIndex = 0; sheetIndex < document.styleSheets.length; |
for (sheetIndex = 0; sheetIndex < document.styleSheets.length; |
||
++sheetIndex) { |
++sheetIndex) { |
||
if (document.styleSheets[sheetIndex].cssRules) { |
|||
thecss = document.styleSheets[sheetIndex].cssRules; |
thecss = document.styleSheets[sheetIndex].cssRules; |
||
} else { |
|||
thecss = document.styleSheets[sheetInde].rules; // IE |
thecss = document.styleSheets[sheetInde].rules; // IE |
||
} |
|||
for (i=0;i<thecss.length;i++) { |
|||
if ((thecss[i].selectorText.toLowerCase()=='body')) { |
if ((thecss[i].selectorText.toLowerCase()=='body')) { |
||
thecss[i].style.cssText="font-family: Times New Roman, Serif;" |
thecss[i].style.cssText |
||
= "font-family: Times New Roman, Serif;" |
|||
+ "background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;" |
+ "background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;" |
||
+ "color: black; margin: 0; padding: 0;"; |
+ "color: black; margin: 0; padding: 0;"; |
||
} else if (thecss[i].selectorText.toLowerCase() |
} else if (thecss[i].selectorText.toLowerCase() |
||
== '#globalwrapper') { |
== '#globalwrapper') { |
||
thecss[i].style.cssText="font-size: 1.8em; width: 100%;" |
thecss[i].style.cssText="font-size: 1.8em; width: 100%;" |
||
+ "margin: 0; padding: 0;"; |
+ "margin: 0; padding: 0;"; |
||
} |
} |
||
} |
|||
} |
} |
||
}); |
|||
} |
} |
Нусха 07:36, 13 ноябри 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>');
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');
}
window.alert ("hi there");
});
if (false && window.location.hostname.match(/(fa|ar|ur)\.wikipedia\.org$/)) {
addOnloadHook
(function() {
var thecss, sheetIndex, i;
if (!document.styleSheets) return;
for (sheetIndex = 0; sheetIndex < document.styleSheets.length;
++sheetIndex) {
if (document.styleSheets[sheetIndex].cssRules) {
thecss = document.styleSheets[sheetIndex].cssRules;
} else {
thecss = document.styleSheets[sheetInde].rules; // IE
}
for (i=0;i<thecss.length;i++) {
if ((thecss[i].selectorText.toLowerCase()=='body')) {
thecss[i].style.cssText
= "font-family: Times New Roman, Serif;"
+ "background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;"
+ "color: black; margin: 0; padding: 0;";
} else if (thecss[i].selectorText.toLowerCase()
== '#globalwrapper') {
thecss[i].style.cssText="font-size: 1.8em; width: 100%;"
+ "margin: 0; padding: 0;";
}
}
}
});
}