大家有没有发现,最近 google 搜维基百科出来的都是手机站点? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhixiao
0.48D

大家有没有发现,最近 google 搜维基百科出来的都是手机站点?

  •  4
     
  •   zhixiao 2022 年 6 月 20 日 4926 次点击
    这是一个创建于 1404 天前的主题,其中的信息可能已经有所发展或是发生改变。

    虽说 m 站点 pc 看起来效果也还行,但是总有点不爽。。。

    37 条回复    2022-11-03 22:44:26 +08:00
    zocome
        1
    zocome  
       2022 年 6 月 20 日   2
    我还以为只有我一个人遇到这种情况,看起来不是个例

    出现 m 站我能理解,但是同一个出口 IP 有的时候是 pc 站有的时候又是 m 站,这就有点迷惑了
    fox
        2
    fox  
       2022 年 6 月 20 日
    同 lz
    yanunon
        3
    yanunon  
       2022 年 6 月 20 日 via iPhone
    俺也一样
    jdkl
        4
    jdkl  
       2022 年 6 月 20 日
    还有豆瓣也是
    virusdefender
        5
    virusdefender  
       2022 年 6 月 20 日   1
    +1 不过只遇到一个常用的网站是这样,还以为这个网站的 seo 问题呢
    cnrting
        6
    cnrting  
       2022 年 6 月 20 日 via iPhone
    情在 sohu 和易出挺久了
    Overfill3641
        7
    Overfill3641  
       2022 年 6 月 20 日   7
    Felix1717
        8
    Felix1717  
       2022 年 6 月 20 日
    同样情况
    butanediol2d
        9
    butanediol2d  
       2022 年 6 月 20 日
    很早就发现了,但是好像不是所有维基百科页面都是手机版。
    chotow
        10
    chotow  
       2022 年 6 月 20 日 via iPhone
    会不会是维基根据 UA 做自动跳转,谷歌爬虫被指去了移动版
    longgediyi999
        11
    longgediyi999  
       2022 年 6 月 20 日
    我以为改版了 闹半天是移动版
    tpkxywxd
        12
    tpkxywxd  
       2022 年 6 月 20 日   1
    的确很讨厌,mobile first 非得牺牲桌面端的用户体验也是过分。推荐安装个 redirector ,然后添加跳转规则:
    from: ^https:\/\/(.*?)\.m\.wikipedia\.org\/(.*)
    to: https://$1.wikipedia.org/$2
    插件地址: https://chrome.google.com/webstore/detail/redirector/pajiegeliagebegjdhebejdlknciafen
    fkdtz
        13
    fkdtz  
       2022 年 6 月 20 日
    @v2tudnew 7 楼的油猴不错,但是应该只会在页面是「繁体」+「 m 站」时才会跳转,如果是「简体」+「 m 站」则不会自动跳转。实际上是 include 规则没匹配的原因,可以在代码中自己加一下
    Overfill3641
        14
    Overfill3641  
       2022 年 6 月 20 日
    @fkdtz #13 我看了下,好像是有的,https://zh.m.wikipedia.org/zh-cn/*,试了下随便找个词添加 m 确实会跳转。
    v23x
        15
    v23x  
       2022 年 6 月 20 日
    的确 感觉好烦..
    Overfill3641
        16
    Overfill3641  
       2022 年 6 月 20 日
    @tpkxywxd #12 这个也不错。
    fkdtz
        17
    fkdtz  
       2022 年 6 月 20 日
    @v2tudnew /zh-hans 不行。zh-cn 是中文中国,zh-hans 是简体中文。
    实际上给规则写成 https://zh.m.wikipedia.org/* 就完了,不知道作者为啥一个个匹配的 [手动狗头]
    docx
        18
    docx  
       2022 年 6 月 20 日 via iPhone
    试了我这边还好,一页 10 条结果,只有 1 条繁体中文的结果是 zh.m.wikipedia.org
    Overfill3641
        19
    Overfill3641  
       2022 年 6 月 20 日
    @fkdtz #17 不知道,估计作者没碰到 zh-hans 的 URL 吧,字体变种里面没这个选择(强行插入 WIKI 会提示影响阅读体验。
    通用来说上面那个扩展会好些,这个适合中文人群。
    cpalead
        20
    cpalead  
       2022 年 6 月 20 日
    @v2tudnew 试了,不好用,m 站不转发
    Overfill3641
        21
    Overfill3641  
       2022 年 6 月 20 日
    @cpalead #20 首先,我不是作者,其次,寻求帮助也要先贴出链接,而不是一句不转发。
    ysc3839
        22
    ysc3839  
       2022 年 6 月 20 日 via Android   1
    @tpkxywxd 推荐使用 Header Editor 扩展,这个 Redirector 已经很多年没更新了。Header Editor 不仅能用来跳转,还可以修改请求头,可以避免一些网站根据请求头进行跳转。
    MoonQiu1342
        23
    MoonQiu1342  
       2022 年 6 月 20 日 via iPhone
    我也是,Safari 上点开 Wiki 指向的一直是 m 站,每次我只能删掉.m ,我还以为是我自己问题(捂脸)
    MrCurly
        24
    MrCurly  
       2022 年 6 月 20 日
    我也发现了,不过不怎么影响阅读,就没管
    explorerproxy
        25
    explorerproxy  
       2022 年 6 月 20 日
    不止是维基,很多的网站都是这样,有没有适配了大量站点的脚本,可以强制手机版换成桌面版
    Overfill3641
        26
    Overfill3641  
       2022 年 6 月 20 日
    目前#23 的胜出,这个能实时预览测试,这点非常好。
    TGl2aWRTQg
        27
    TGl2aWRTQg  
       2022 年 6 月 21 日
    我也是,不知道啥情况
    0x400
        28
    0x400  
       2022 年 6 月 21 日 via iPhone
    换了 发现这个问题 不知道是不是碰巧
    cpalead
        29
    cpalead  
       2022 年 6 月 21 日   2
    @v2tudnew 我已经( https://greasyfork.org/zh-CN/scripts/439848 )把 bug 修复了
    大家直接把我的脚本导入就行了


    // ==UserScript==
    // @name RedirectChineseWikipedia
    // @name:zh-CN 中文维基重定向
    // @namespace https://zh.wikipedia.org
    // @include https://zh.wikipedia.org/wiki/*
    // @include https://zh.wikipedia.org/zh/*
    // @include https://zh.wikipedia.org/zh-hk/*
    // @include https://zh.wikipedia.org/zh-mo/*
    // @include https://zh.wikipedia.org/zh-tw/*
    // @include https://zh.wikipedia.org/zh-my/*
    // @include https://zh.wikipedia.org/zh-sg/*
    // @include https://zh.wikipedia.org/zh-hans/*
    // @include https://zh.m.wikipedia.org/wiki/*
    // @include https://zh.m.wikipedia.org/zh/*
    // @include https://zh.m.wikipedia.org/zh-hk/*
    // @include https://zh.m.wikipedia.org/zh-mo/*
    // @include https://zh.m.wikipedia.org/zh-tw/*
    // @include https://zh.m.wikipedia.org/zh-my/*
    // @include https://zh.m.wikipedia.org/zh-sg/*
    // @include https://zh.m.wikipedia.org/zh-cn/*
    // @include https://zh.m.wikipedia.org/zh-hans/*
    // @version 0.3
    // @description Force redirect Chinese Wikipedia from other locales to zh-cn (and also from mobile ver to desktop ver)
    // @description:zh-CN 重定向中文维基的其他版本(繁体中文等)到简体中文,同时重定向手机端页面到桌面端页面。
    // @author aisuneko
    // @icon https://zh.wikipedia.org/favicon.ico
    // @license MIT
    // @grant none
    // ==/UserScript==

    (function() {
    'use strict';
    let variants = ["wiki/", "zh/", "zh-hk/", "zh-mo/", "zh-tw/","zh-my/", "zh-sg/", "zh-hans/"];
    let url = window.location.href;
    let desturl = url;
    let header = "zh.wikipedia.org/";
    let mobile_header = "zh.m.wikipedia.org/";
    if(url.search(mobile_header) != -1) desturl = url.replace(mobile_header, header);

    let target = header + "zh-cn/";
    for(let i = 0; i < variants.length; i++){
    let searchstr = header + variants[i];
    if(desturl.search(searchstr) != -1){
    desturl = desturl.replace(searchstr, target);
    break;
    }
    }
    window.location.replace(desturl);
    })();
    Overfill3641
        30
    Overfill3641  
       2022 年 6 月 21 日
    @cpalead #29 已经删了,还是 Header Editor 的好用,两条正则搞定中文和外语的问题。
    posizard
        31
    posizard  
       2022 年 7 月 14 日
    m 站可以切换语言,pc 站底部有些词条,有类似知识结构的介绍。 强烈希望这两个功能整合一下。
    cpalead
        32
    cpalead  
       2022 年 10 月 24 日
    @v2tudnew 能不能把规则分享一下
    Overfill3641
        33
    Overfill3641  
       2022 年 10 月 24 日   1
    @cpalead 本来想中文部分都例举出来,但想到反正有排除,zh-后面也不可能是外语。

    匹配类型: 正则表达式

    匹配规则: ^https?:\/\/([a-z]+)\.m\.wikipedia\.org\/

    执行类型: 常规

    重定向至: https://$1.wikipedia.org/


    匹配类型: 正则表达式

    匹配规则: ^https?:\/\/zh\.wikipedia\.org\/(wiki|zh-[a-z]+)\/

    排除规则://zh.wikipedia.org/zh-cn/

    执行类型: 常规

    重定向至: https://zh.wikipedia.org/zh-cn/
    cpalead
        34
    cpalead  
       2022 年 11 月 3 日
    @v2tudnew 你这个好用啊,用油猴的脚本,是先把页面加载了,然后再跳转到中文页面,你这个规则,还没加载直接就跳转了!省时间,而且油猴脚本有时候还不生效
    cpalead
        35
    cpalead  
       2022 年 11 月 3 日
    @v2tudnew 你这少了一条
    ^https?:\/\/zh\.wikipedia\.org\/(wiki|zh)\/
    因为有些就是 zh 的不是 zh-tw 这样的
    Overfill3641
        36
    Overfill3641  
       2022 年 11 月 3 日
    @cpalead ^https?:\/\/zh\.wikipedia\.org\/(wiki|zh|zh-[a-z]+)\/ 确实,但没遇到过啊。
    cpalead
        37
    cpalead  
       2022 年 11 月 3 日
    @v2tudnew 我刚导入就遇到了,哈哈
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     878 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 93ms UTC 21:26 PVG 05:26 LAX 14:26 JFK 17:26
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86