User talk:Quarl/monobook.js
Appearance
I was getting a bunch of crap at the top of the page when I tried to preview or diff my js, but otherwise it worked. It was just because of the script tag showing up literally here:
function winc(s) { s = s.replace(/^\[\[/, '').replace(/\]\]$/, ''); document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=' + s + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
Not sure if you have the same problem with your commented out stuff, but I fixed it simply:
function winc(s) { s = s.replace(/^\[\[/, '').replace(/\]\]$/, ''); document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=' + s + '&action=raw&ctype=text/javascript&dontcountme=s"></scr' + 'ipt>'); }
— Omegatron 01:31, 7 February 2006 (UTC)
I never got any problems like that (perhaps because it's commented), but just in case anyone copies this code I've split up the script tag like you suggested. Thanks —Quarl (talk) 2006-02-07 01:54Z