MediaWiki:Mobile.js:修订间差异
删除的内容 添加的内容
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第13行: | 第13行: | ||
s.parentNode.insertBefore(hm, s); |
s.parentNode.insertBefore(hm, s); |
||
})(); |
})(); |
||
/* 百度自动推送 */ |
|||
$(function(){ |
|||
if (mw.config.get('wgNamespaceNumber', -1) !== -1 && mw.config.get('wgAction', null) === 'view' && !location.search.match(/oldid/)) { |
|||
$.getScript('https://zz.bdstatic.com/linksubmit/push.js'); |
|||
} |
|||
$.getScript('https://sdk.51.la/js-sdk-pro.min.js', function(){ |
|||
LA.init({ |
|||
id: 'JsaizsfQKypCkygY', |
|||
ck: 'JsaizsfQKypCkygY' |
|||
}); |
|||
}); |
|||
}); |
2022年11月19日 (六) 19:03的最新版本
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
if(location.pathname === '/'){
history.replaceState({}, document.title, 'Index');
}
/* 百度统计代码 */
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?1d1f417946fa19c604c8a03880f407ed";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();