MediaWiki:Common.js:修订间差异
外观
Maintenance script(留言 | 贡献) 临时禁用排查 标签:替换 |
Maintenance script(留言 | 贡献) 恢复 标签:手工回退 |
||
| 第1行: | 第1行: | ||
/* | /* 内容区链接在新窗口打开(仅桌面端) */ | ||
$( function () { | |||
var isMobile = /Android|iPhone|iPad|iPod|Mobile/i.test( navigator.userAgent ) || window.innerWidth <= 720; | |||
if ( !isMobile ) { | |||
$( '#bodyContent a, #content a' ).attr( 'target', '_blank' ); | |||
} | |||
} ); | |||
2026年10月11日 (日) 03:02的版本
/* 内容区链接在新窗口打开(仅桌面端) */
$( function () {
var isMobile = /Android|iPhone|iPad|iPod|Mobile/i.test( navigator.userAgent ) || window.innerWidth <= 720;
if ( !isMobile ) {
$( '#bodyContent a, #content a' ).attr( 'target', '_blank' );
}
} );