//
$(function () {
var testCssCounter = 0;
var wiki = window.location.host.split(".", "1");
function testCss() {
if (testCssCounter === 0) {
var testCss = document.createElement("link");
testCss.type = 'text/css';
testCss.rel = 'stylesheet';
testCss.id = 'testCssStyle';
testCss.href = 'http://dzy.wikia.com/index.php?title=Mediawiki:TestCSS/' + wiki + '.css&action=raw&ctype=text/css';
document.head.appendChild(testCss);
testCssCounter ++;
} else {
$("#testCssStyle").remove();
testCssCounter --;
}
}
$('.WikiaLogo').after("<button id='testCss' style='margin-right:6px'>Test CSS</button>");
$('#testCss').on("click", testCss);
});
//