MediaWiki:Common.js:修订间差异
外观
小无编辑摘要 |
小无编辑摘要 |
||
| 第11行: | 第11行: | ||
history.replaceState({}, document.title, 'Index'); | history.replaceState({}, document.title, 'Index'); | ||
} | } | ||
2022年12月11日 (日) 23:56的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* 随系统切换暗黑模式。 */
window.wpDarkModeAutoToggle = true;
/* UTC时钟使用本地时区。 */
window.LiveClockTimeZone = 'Asia/Shanghai';
/* 优化 */
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);
})();