No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
/* Google ads */ | /* Google ads */ | ||
mw.loader.load( 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); | |||
$(function () { | $(function () { | ||
$('#mw-advertisement').html(' | $('#mw-advertisement').html(' | ||
<ins class="adsbygoogle" | <ins class="adsbygoogle" | ||
style="display:block" | style="display:block" | ||
Line 28: | Line 27: | ||
data-ad-format="auto" | data-ad-format="auto" | ||
data-full-width-responsive="true"><\/ins> | data-full-width-responsive="true"><\/ins> | ||
'); | |||
}()); | }()); | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | |||
/* Testing with a simple script */ | /* Testing with a simple script */ |
Revision as of 15:08, 27 March 2020
/* Any JavaScript here will be loaded for all users on every page load. */ /* enables View History button next to Message Wall greeting*/ /* function WallTools() { if (wgCanonicalNamespace == 'Thread') { $('#WallBrickHeader').append('<a href="/wiki/'+ wgPageName +'?action=history" class="wikia-button" style="margin-left:10px; margin-right:10px; float: right;" id="History">View History</a>'); } if (wgCanonicalNamespace == 'Message_Wall' && wgAction != 'history') { $('.WikiaMainContent').prepend('<div class="UserProfileActionButton"><a href="/wiki/'+ wgPageName +'?action=history" class="wikia-button" style="margin-left:10px; margin-right:10px;" id="History">View History</a></div>'); if (wgTitle == wgUserName) { $('.UserProfileActionButton').prepend('<a accesskey="e" href="/wiki/Message_Wall_Greeting:'+ wgUserName +'?action=edit" class="wikia-button" data-id="edit" id="talkArchiveEditButton" style="padding-left: 5px; padding-right: 8px;"><img alt="" class="sprite edit-pencil" height="16" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" width="22"> Edit Greeting </a>'); } } } addOnloadHook(WallTools); */ /* Google ads */ mw.loader.load( 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); $(function () { $('#mw-advertisement').html(' <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6105891224882142" data-ad-slot="7505648175" data-ad-format="auto" data-full-width-responsive="true"><\/ins> '); }()); (adsbygoogle = window.adsbygoogle || []).push({}); /* Testing with a simple script */ $(function () { $('#mw-hello-world').html('<html>Hello World!!!</html>'); }());