{"id":21885949,"url":"https://github.com/garywill/bslow","last_synced_at":"2025-04-15T07:53:30.412Z","repository":{"id":97197971,"uuid":"604571336","full_name":"garywill/bslow","owner":"garywill","description":"B站 (Bilibili) web看视频太卡，缓解方法","archived":false,"fork":false,"pushed_at":"2023-09-02T04:56:36.000Z","size":36,"stargazers_count":24,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T07:53:22.172Z","etag":null,"topics":["bilibili"],"latest_commit_sha":null,"homepage":"https://addons.mozilla.org/firefox/addon/b-slow/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garywill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-21T10:45:32.000Z","updated_at":"2025-03-15T13:07:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"e04f5553-b234-41e5-af07-7201ceb2446a","html_url":"https://github.com/garywill/bslow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2Fbslow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2Fbslow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2Fbslow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2Fbslow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garywill","download_url":"https://codeload.github.com/garywill/bslow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249031772,"owners_count":21201357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili"],"created_at":"2024-11-28T10:30:45.737Z","updated_at":"2025-04-15T07:53:30.406Z","avatar_url":"https://github.com/garywill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# B Slow\n\n上B站 (Bilibili) web看视频太卡，每次打开一个 B 站视频，电脑风扇开始转，小浏览器受不了。让它轻一点卡。\n\n- [Firefox on AMO](https://addons.mozilla.org/firefox/addon/b-slow/)\n  \n  只需要[轻轻访问一下我的B站频道（一般发技术等内容）](https://space.bilibili.com/2123686105)就可以免费安装使用啦，如果关注就更好了～\n\n### 原理\n\n脚本错峰执行，而播放功能不受影响。\n\n在 webrequestBlocking 里加`await sleep()`，让非核心视频功能资源经过 N 秒的随机延时后再加载，**错峰出行**。而播放功能不受影响。\n\n**不对网站内容和功能做任何修改、添加、删除**。\n\n### 用户可决定临时停用\n\n需要对视频点赞收藏留言时  \n是可以临时禁用的，可使用以下其中一种方式临时禁用:  \n\n1. 点视频上方标题  \n2. 点一下工具栏上的按钮  \n3. 往下滚动页面到留言  \n4. 页面打开后的80s自然触发临时禁用\n\n### 待改进\n\n1. 发现在 webrequestBlocking 里，纯await sleep()的时候也要占用少量的 cpu \n\n2. B 站的网页全屏功能要等全部资源加载后才能用（全屏幕倒是可以正常用）。搞不清网页全屏是在哪个.js 里（好像他们全打成bundle了没法分了）\n\n### 对浏览器的支持\n\n仅Firefox。可惜 Chrome 无法使用。Chrome 的 webqurestBlocking 竟然不支持 async 。而且以后 mv3 更没希望了\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarywill%2Fbslow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarywill%2Fbslow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarywill%2Fbslow/lists"}