MediaWiki:Common.js:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
通过wikiplus编辑
无编辑摘要
标签手工回退
 
(未显示2个用户的18个中间版本)
第1行: 第1行:
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */

/* 随系统切换暗黑模式。 */
window.wpDarkModeAutoToggle = true;


/* UTC时钟使用本地时区。 */
/* UTC时钟使用本地时区。 */
第11行: 第8行:
history.replaceState({}, document.title, 'Index');
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);
})();

document.write("<script>!function(p){\"use strict\";!function(t){var s=window,e=document,i=p,c=\"\".concat(\"https:\"===e.location.protocol?\"https://\":\"http://\",\"sdk.51.la/js-sdk-pro.min.js\"),n=e.createElement(\"script\"),r=e.getElementsByTagName(\"script\")[0];n.type=\"text/javascript\",n.setAttribute(\"charset\",\"UTF-8\"),n.async=!0,n.src=c,n.id=\"LA_COLLECT\",i.d=n;var o=function(){s.LA.ids.push(i)};s.LA?s.LA.ids&&o():(s.LA=p,s.LA.ids=[],o()),r.parentNode.insertBefore(n,r)}()}({id:\"Juu3QFeD2lfuFjWf\",ck:\"Juu3QFeD2lfuFjWf\"});</script>")

2023年3月27日 (一) 14:08的最新版本

/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */

/* UTC时钟使用本地时区。 */
window.LiveClockTimeZone = 'Asia/Shanghai'; 

/* 优化 */
if (location.pathname === '/') {
	history.replaceState({}, document.title, 'Index');
}