跳转到内容

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' );
    }
} );