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