「MediaWiki:Common.js」の版間の差分
ナビゲーションに移動
検索に移動
| 1行目: | 1行目: | ||
(function(doc, win) { | (function(doc, win) { | ||
| − | win.addEventListener('load', function() { | + | win.addEventListener('load', function() { |
| − | var ad = doc.createElement('script'); | + | var ad = doc.createElement('script'); |
| − | ad.type = 'text/javascript'; | + | ad.type = 'text/javascript'; |
| − | ad.data-ad-client = 'ca-pub-6884347898813638'; | + | ad.data - ad - client = 'ca-pub-6884347898813638'; |
| − | ad.async = true; | + | ad.async = true; |
| − | ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; | + | ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; |
| − | var sc = doc.getElementsByTagName('script')[0]; | + | var sc = doc.getElementsByTagName('script')[0]; |
| − | sc.parentNode.insertBefore(ad, sc); | + | sc.parentNode.insertBefore(ad, sc); |
| − | }); | + | }); |
})(document, window); | })(document, window); | ||
2020年12月18日 (金) 15:00時点における版
(function(doc, win) {
win.addEventListener('load', function() {
var ad = doc.createElement('script');
ad.type = 'text/javascript';
ad.data - ad - client = 'ca-pub-6884347898813638';
ad.async = true;
ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
var sc = doc.getElementsByTagName('script')[0];
sc.parentNode.insertBefore(ad, sc);
});
})(document, window);