Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// CSS validator// Author: [[User:Kwj2772]] // License: Creative Commons Attribution-ShareAlike (BY-SA) 3.0 if(// Only load on User/MediaWiki:*.cssmw.config.get('wgTitle').match(/\.css/i)&&(mw.config.get('wgNamespaceNumber')==2||mw.config.get('wgNamespaceNumber')==8)// Support Safari <= 5, IE <= 11: Gracefully ignore&&typeofURL!=='undefined'){$(function(){// when there isn't a #ca-validatecss alreadyif($('#ca-validatecss').length){return;}varvalidator='http://jigsaw.w3.org/css-validator/validator?&usermedium=all&warning=1&lang=en&uri='varuri=mw.util.getUrl(null,{action:'raw',ctype:'text/css'});// expand, since uri may be like "/w/..." or "//commons.wikimedia.org/w/...".// We need an absolute url with protocol and hostname.varurlObj=newURL(uri,location.href);varfullUri=urlObj.href;validator=validator+encodeURIComponent(fullUri);mw.util.addPortletLink('p-cactions',validator,'Validate CSS','ca-validatecss','Validate CSS','v');});}