From The Official GPF Wiki
Jump to: navigation, search
/* Add AddThis button to the sidebar for non-HTTPS pages using short URLs: */
if (window.location.href.match(/^https\:/) && window.location.href.match(/\/wiki\//)) {
	var mwPanelDiv = document.getElementById('mw-panel');
	mwPanelDiv.innerHTML += '<p><a class="addthis_button" href=";pubid=jtdarlington"><img src="" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></p><script type="text/javascript" src=""></script>';

/* Add banner ads, GPF Premium subscription notices, and site-wide notices to
   the top of the page: */
$.getScript('/advertise/lib_ads_js.php', function() {
	var gpftopanchor = document.getElementById('top');
	gpftopanchor.outerHTML += gpfLeaderboardAdString() + gpfSkyscraperAdString();