World of Warcraft: Forever is currently in beta. This wiki is being updated regularly as new information becomes available, and details may change before launch. You can help by submitting edits and corrections as you discover them in-game.

MediaWiki:Common.js

From WowForever Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Google AdSense — 160x600 skyscraper in the sidebar, main namespace only
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
	var pfAdSidebar = document.createElement( 'div' );
	pfAdSidebar.className = 'pf-ad-sidebar';
	pfAdSidebar.style.margin = '1em 0';
	pfAdSidebar.innerHTML =
		'<ins class="adsbygoogle" style="display:inline-block;width:160px;height:600px" ' +
		'data-ad-client="ca-pub-2455274164350480" ' +
		'data-ad-slot="YOUR_SIDEBAR_SLOT_ID"></ins>';

	var pfSidebarContainer = document.querySelector( '#mw-panel, .mw-sidebar-container, #vector-sidebar' );
	if ( pfSidebarContainer ) {
		pfSidebarContainer.appendChild( pfAdSidebar );
		( adsbygoogle = window.adsbygoogle || [] ).push( {} );
	}
}