MediaWiki:ShowAdsButton/code.js

// if( wgNamespaceNumber != -1 && !window.ShowAdsLoad  ) {	addOnloadHook( addShowAdsButton ); } var ShowAdsLoad = true; // prevent duplication

function addShowAdsButton { switch( skin ) { case 'answers': /* pass to monaco */ case 'awesome': case 'monaco': $(' show ads').appendTo('#page_controls'); break;

case 'uncyclopedia': /* pass to monobook */ case 'monobook': $('show ads').appendTo('#p-cactions > .pBody > ul'); break;

} }

//