【移动端】bilibili优化
阻止跳转App、App端推荐视频流、解锁视频画质(番剧解锁需配合其它插件)、美化显示、去广告等
Today's Installations
2
Total Installations
832
Creation Date
3 months ago
Update Date
4 days ago
User Rating
No Rating
v2025.3.9GPL-3.0-only

【移动端】bilibili 优化

注:并非所有功能都是默认开启,有些功能需要到油猴菜单中打开【设置】,手动开启功能。

一个对移动端 bilibili 进行优化的油猴脚本。

特性

  • 修复用户主页跳转 404
  • 新标签页打开
  • 允许复制网页内容
  • 阻止唤醒 App
  • 成分检测(评论区、用户主页)
  • 评论模块
  • 简介模块
  • 美化视频卡片
  • 新增推荐视频 tab
  • ArtPlayer 播放器(播放功能强化,可选择视频清晰度)
  • 解除番剧区域搜索和播放
  • 自动展开全文
  • 修复点击跳转视频、用户主页、其它内容
  • 等其它功能...

安装

注:建议使用浏览器扩展执行本脚本。

  • 浏览器扩展的功能和 Api 更完整
  • 非浏览器扩展使用脚本会遇到更多使用上的问题(跨域问题、脚本冲突等)

dash & 番剧

注:番剧画质解锁需要设置RefererUser-Agent鉴权,但RefererUser-Agent无法通过油猴脚本设置,所以只能通过插件设置。

  • 套壳类浏览器,例如:Via浏览器X浏览器需要对m.bilibili.com设定浏览器标识(UserAgent)iPhone
  • 可安装扩展的浏览器,例如:可拓Kiwi狐猴等,需安装插件Header Editor
商店名 Header Editor插件的链接
Edge https://microsoftedge.microsoft.com/addons/detail/header-editor/afopnekiinpekooejpchnkgfffaeceko
Chrome https://chromewebstore.google.com/detail/header-editor/eningockdidmgiojffjmkdblpjocbhgh?hl=zh-CN
Firefox https://addons.mozilla.org/zh-CN/firefox/addon/header-editor

将下面的规则自行创建一个xxx.json文件,粘贴进去,导入到插件即可,或者复制链接

规则文件(fastly 节点)

规则文件(testingcf 节点)

规则文件(gcore 节点)

{
    "request": [],
    "sendHeader": [
        {
            "enable": true,
            "name": "哔哩哔哩解锁播放限制",
            "ruleType": "modifySendHeader",
            "matchType": "regexp",
            "pattern": "https://.*.(bilivideo.com|akamaized.net|bilivideo.cn).*?",
            "exclude": "",
            "group": "未分组",
            "isFunction": true,
            "action": {
                "name": "referer",
                "value": "https://www.bilibili.com/"
            },
            "code": "for (const index in val) {\n    let headerItem = val[index];\n\tif (headerItem.name.toLowerCase() === 'referer') {\n\t\theaderItem.value = \"https://www.bilibili.com/\"\n\t}else if(headerItem.name.toLowerCase() === 'user-agent'){\n                headerItem.value = \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36\"\n        }\n}"
        }
    ],
    "receiveHeader": [],
    "receiveBody": []
}

赞赏支持

微信赞赏 支付宝赞赏
Script Score
empty image
No one has rated the script yet. Be the first to rate it!