「MediaWiki:Common.js」の版間の差分
| (同じ利用者による、間の3版が非表示) | |||
| 1行目: | 1行目: | ||
| − | (function( | + | (function(window, document) { |
| − | + | var ad = document.createElement('script'); | |
| − | + | ad.type = 'text/javascript'; | |
| − | + | ad.dataset.adClient = 'ca-pub-6884347898813638'; | |
| − | + | ad.async = true; | |
| − | + | ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; | |
| − | + | var sc = document.getElementsByTagName('script')[0]; | |
| − | + | sc.parentNode.insertBefore(ad, sc); | |
| − | + | })(window, document); | |
| − | |||
| − | |||
| − | })(document | ||
2020年12月18日 (金) 15:15時点における最新版
(function(window, document) {
var ad = document.createElement('script');
ad.type = 'text/javascript';
ad.dataset.adClient = 'ca-pub-6884347898813638';
ad.async = true;
ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
var sc = document.getElementsByTagName('script')[0];
sc.parentNode.insertBefore(ad, sc);
})(window, document);