MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第490行: | 第490行: | ||
ga('create', 'UA-79438840-1', 'auto'); | ga('create', 'UA-79438840-1', 'auto'); | ||
ga('send', 'pageview'); | ga('send', 'pageview'); | ||
/* 百度推送 */ | |||
(function(){ | |||
var bp = document.createElement('script'); | |||
var curProtocol = window.location.protocol.split(':')[0]; | |||
if (curProtocol === 'https') { | |||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; | |||
} | |||
else { | |||
bp.src = 'http://push.zhanzhang.baidu.com/push.js'; | |||
} | |||
var s = document.getElementsByTagName("script")[0]; | |||
s.parentNode.insertBefore(bp, s); | |||
})(); | |||