Greasy Fork is available in English.

【移动端】bilibili优化

移动端专用,免登录(但登录后可以看更多评论)、阻止跳转App、App端推荐视频流、解锁视频画质(番剧解锁需配合其它插件)、美化显示、去广告等

Autor
WhiteSevs
Instalações hoje
64
Total de instalações
2.071
Avaliações
6 0 0
Versão
2024.7.7.19
Criado
11/05/2024
Atualizado
07/07/2024
Licença
GPL-3.0-only
Aplicável a

TypeScript + Vite

脚手架

介绍

建议开启设置中 的tinyApp

  • 解锁充电限制(虽然没有用)
  • 解锁视频画质(最高720p,需要登录账号)
  • 解锁番剧画质(最高720p,需要登录账号)注意:需该源有RefererUser-Agent鉴权
  • App推荐视频(需通过油猴菜单->扫码获取accesstoken,或者设置中手动输入accesstoken)
  • 去除影响观看的元素
  • 美化显示
  • 伪装登录(对解锁画质无效)
  • 覆盖点击事件(阻止唤醒App或下载App)
  • 阻止调用App
  • 补充视频UP信息
  • ...等

画质解锁的限制

  1. 1080p+的视频是m4s类型,<video>标签无法直接播放,所以只能获取720P
  2. 番剧画质解锁需要设置RefererUser-Agent鉴权,但RefererUser-Agent无法通过油猴脚本设置,所以只能通过插件设置

画质解锁

需安装插件Header Editor,最高解锁画质720P

商店名 链接
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文件,粘贴进去,导入到插件即可

{
    "request": [],
    "sendHeader": [
        {
            "enable": true,
            "name": "bangumi",
            "ruleType": "modifySendHeader",
            "matchType": "regexp",
            "pattern": "https://.*.bilivideo.cn.*?",
            "exclude": "",
            "group": "Bilibili",
            "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/126.0.0.0 Safari/537.36\"\n        }\n}"
        }
    ],
    "receiveHeader": [],
    "receiveBody": []
}