Generasia would not be possible without tokyograph and all the wonderful people who've contributed over the past 15 years. Thank you!
Difference between revisions of "MediaWiki:Common.js"
m |
m |
||
Line 1: | Line 1: | ||
− | + | mw.loader.getScript( '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ) | |
− | + | .then( function (adsbygoogle = window.adsbygoogle || []).push({ | |
− | |||
google_ad_client: "ca-pub-4459197045169288", | google_ad_client: "ca-pub-4459197045169288", | ||
enable_page_level_ads: true | enable_page_level_ads: true | ||
}); | }); | ||
− | |||
− | + | mw.loader.getScript(window, document, '//vdo.ai/core/generasia/vdo.ai.js') | |
− | (function(v,d,o,ai){ai=d.createElement('script');ai.defer=true;ai.async=true;ai.src=v.location.protocol+o;d.head.appendChild(ai);}) | + | .then( function(v,d,o,ai){ai=d.createElement('script');ai.defer=true;ai.async=true;ai.src=v.location.protocol+o;d.head.appendChild(ai);}) |
− | + | }); |
Latest revision as of 16:04, 9 September 2019
mw.loader.getScript( '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ) .then( function (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-4459197045169288", enable_page_level_ads: true }); mw.loader.getScript(window, document, '//vdo.ai/core/generasia/vdo.ai.js') .then( function(v,d,o,ai){ai=d.createElement('script');ai.defer=true;ai.async=true;ai.src=v.location.protocol+o;d.head.appendChild(ai);}) });