Difference between revisions of "User:Shijun/monobook.js"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
// <pre> | // <pre> | ||
− | + | function loadScript(wikiPhp, file) { | |
− | + | document.write('<script type="text/javascript" src="' + | |
− | + | wikiPhp + '?title=' + file + '&action=raw' + | |
− | function | + | '&ctype=text/javascript&dontcountme=s"></script>'); |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | // | + | loadScript('http://en.wikipedia.org/w/index.php', 'User:Alex_Smotrov/qpreview.js') |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// </pre> | // </pre> |
Revision as of 08:08, 21 March 2007
// <pre>
function loadScript(wikiPhp, file) {
document.write('<script type="text/javascript" src="' +
wikiPhp + '?title=' + file + '&action=raw' +
'&ctype=text/javascript&dontcountme=s"></script>');
}
loadScript('http://en.wikipedia.org/w/index.php', 'User:Alex_Smotrov/qpreview.js')
// </pre>