Redirect m. to www. (with Weibo Fix)

Redirects mobile (m.) sites to their desktop (www.) versions, with a special rule for Weibo detail pages.

作者
Continy
日安装量
0
总安装量
1
评分
0 0 0
版本
2.0
创建于
2025-07-01
更新于
2025-07-01
大小
2.1 KB
许可证
MIT
适用于
所有网站

About This Script / 关于此脚本


Ever wondered why websites use different links for their mobile versions, leading to a cramped or ridiculous-looking layout on your desktop browser? This script solves that problem by automatically redirecting you to the proper desktop version.


你是否也曾感到困惑:“为什么要为手机端而使用不同的链接,导致电脑端以滑稽的方式显示内容?” 这个脚本会自动检测并重定向到体验更佳的桌面版页面,从而解决该问题。

How It Works / 工作原理


  • Special Rule for Weibo:

    It knows Weibo's mobile links (m.weibo.cn/detail/...) are complex. It intelligently parses the page to find the correct desktop URL (weibo.com/.../...) and takes you there directly.


    针对微博的特别策略:

    脚本知道微博的手机详情页链接结构很复杂。它会智能地分析页面内容,找出正确的桌面版链接并直接跳转。


  • Generic Rule for All Other Sites:

    For any other site starting with m., it performs a standard redirect to the www. version.


    适用于其他网站的通用策略:

    对于任何其他以 m. 开头的网站,脚本会执行标准的重定向,将 m. 替换为 www.

Important Notice / 重要提示


Please be aware that this script was generated by an AI assistant. For generic (non-Weibo) sites, the direct redirect may occasionally lead to a non-existent page (e.g., a 404 error).


请注意:本脚本由 AI 助手生成。对于通用(非微博)网站,脚本会进行直接跳转,这偶尔可能导致目标页面不存在(例如404错误)。


If you encounter such an issue, or find a site that needs a special rule like Weibo, please submit an issue on Greasy Fork镜像. You are also welcome to view the source code to add your own custom rules.


如果您遇到类似的问题,或发现某个网站有特殊的跳转规则,欢迎在 Greasy Fork镜像 上提交 issue。您也可以随时查看源码,添加自己的定制规则

Installation / 安装


  1. Make sure you have a user script manager (e.g., Tampermonkey, Greasemonkey, etc.).

    确保你已经安装了用户脚本管理器 (例如 Tampermonkey, Greasemonkey 等)。

  2. Click the green "Install this script" button on this page.

    点击本页面上那个绿色的“安装此脚本”按钮。

  3. Enjoy a better Browse experience!

    开始享受更舒适的桌面浏览体验!

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址