Фарқият байни намунаҳои "Корбар:Aidan Kehoe/monobook.js"

Attempt the stylesheet manipulation again.
(Move to my version of PicturePopups.js)
(Attempt the stylesheet manipulation again.)
});
 
if (false && window.location.hostname.match(/(fa|ar|ur)\.wikipedia\.org$/)) {
importStylesheetURI('http://tg.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=Корбар%3AAidan_Kehoe%2FPersoArabic.css');
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;";
}
}
}
});
}
176

edits