{"id":13430170,"url":"https://github.com/fython/userscript-enhance-bilibili-player","last_synced_at":"2025-05-02T06:30:49.500Z","repository":{"id":41689019,"uuid":"247210938","full_name":"fython/userscript-enhance-bilibili-player","owner":"fython","description":"增强哔哩哔哩播放器的使用体验（Tampermonkey script）","archived":false,"fork":false,"pushed_at":"2023-03-04T07:37:43.000Z","size":1082,"stargazers_count":35,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T23:13:38.278Z","etag":null,"topics":["bilibili","tampermonkey","userscript","vue","webpack-userscript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fython.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":"2020-03-14T04:24:42.000Z","updated_at":"2024-10-26T13:34:27.000Z","dependencies_parsed_at":"2024-11-12T15:33:36.312Z","dependency_job_id":"e401fe6f-f9ff-458a-97fe-c770a543cc1a","html_url":"https://github.com/fython/userscript-enhance-bilibili-player","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/fython%2Fuserscript-enhance-bilibili-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2Fuserscript-enhance-bilibili-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2Fuserscript-enhance-bilibili-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2Fuserscript-enhance-bilibili-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fython","download_url":"https://codeload.github.com/fython/userscript-enhance-bilibili-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998142,"owners_count":21677932,"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","tampermonkey","userscript","vue","webpack-userscript"],"created_at":"2024-07-31T02:00:50.764Z","updated_at":"2025-05-02T06:30:49.199Z","avatar_url":"https://github.com/fython.png","language":"JavaScript","funding_links":[],"categories":["篡改猴脚本"],"sub_categories":["主站脚本"],"readme":"增强哔哩哔哩播放器\n======\n\n[![GitHub](https://img.shields.io/github/license/fython/userscript-enhance-bilibili-player)](https://github.com/fython/userscript-enhance-bilibili-player/blob/master/LICENSE)\n\n## 介绍\n\n这是一个用于增强哔哩哔哩网页播放器使用体验的 Tampermonkey 插件。\n\n### 插件功能\n\n目前哔哩哔哩播放器增强插件实现的功能如下：\n\n- 按需隐藏原播放器菜单不常用的选项\n- 复制当前播放位置的视频链接，可选 `?t=12h34m56s`（时分秒）或 `?t=1234`（秒数）不同的参数风格\n- 以视频实际分辨率、不带弹幕，复制当前播放位置的视频截图\n- 对当前播放内容进行录制\n- 插件设置页面\n\n### 使用场景\n\n其一：在播放器点击鼠标右键打开菜单，即可复制当前播放位置的视频链接发给你的朋友，对方打开这个链接时会直接跳转到指定位置，和 YouTube 的使用体验相同。\n\n![](./.github/screenshot.png)\n\n## 安装\n\n在使用之前请先确保你已经在浏览器安装了 [Tampermonkey/油猴](https://www.tampermonkey.net/?ext=dhdg\u0026locale=zh)，如果你无法通过官方的 Chrome Store 渠道获取，请使用国内的搜索引擎搜索油猴的离线安装版。\n\n然后在 [【GreasyFork: 397885-哔哩哔哩播放器增强】](https://greasyfork.org/zh-CN/scripts/397885-%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E6%92%AD%E6%94%BE%E5%99%A8%E5%A2%9E%E5%BC%BA) 进行安装。\n\n## 开发 \u0026 编译\n\n### 安装依赖\n\n在获取源码到本地后，你需要保证开发环境已安装 Node.js 和 NPM。\n\n然后在项目目录执行 `npm install` 安装编译所需要的依赖。\n\n### 运行调试\n\n执行 `npm run dev:userscript` 进行插件的测试版本编译，在已安装 Tampermonkey 插件的浏览器中打开 `http://127.0.0.1:10801/enhance-biliplayer.user.js` 即可安装当前编译的插件程序，每次热更新后都需要重新打开这个地址更新插件。\n\n执行 `npm run dev:settings` 运行插件设置页面，默认是 `http://127.0.0.1:10802`。正式版 `production` 编译的插件不会连接到本地运行的设置，请配合上面的测试版本插件使用。\n\n执行 `npm run build` 对脚本进行打包输出，编译结果将存放在项目目录的 `dist` 中。\n\n### 贡献代码\n\n欢迎提出 Issues 或 Pull Request，提交分支请选择 `dev` 分支，`master` 为正式发布分支，一旦提交到 `master` 就会执行 GitHub Actions 发布新的正式版本到 `gh-pages` 和 GreasyFork 仓库中。\n\n项目结构如下：\n\n```\n| .github          : 存放 Markdown 引用的媒体资源和 GitHub Actions 定义\n| build            : Webpack 编译设置\n| common           : 【插件本体与设置页面的共享源码（常量、存储）】\n| pages            : 外部页面源码\n| |- settings      : 【插件设置页面源码】\n|    |- assets     : 设置页面样式、资源\n|    |- components : 页面组件\n|    |- plugins    : Vue 插件\n|    |- App.vue    : 设置主页面 Vue 源码\n|    |- index.js   : 主入口\n|    |- index.tpl  : 页面模版\n|\n| src              : 【插件本体源码】\n| |- lang          : 文本翻译\n| |- util          : 工具集\n| |- constants.js  : 插件本体常量\n| |- index.js      : 插件入口、实现的功能定义\n| |- ui.js         : 插件界面定义\n|\n| .babelrc         : Babel 配置\n| .eslintignore    : ESLint 忽略检查清单\n| .eslintrc.js     : ESLint 配置\n| package.json     : NPM 包定义\n```\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2020 Siubeng Fung (fython)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffython%2Fuserscript-enhance-bilibili-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffython%2Fuserscript-enhance-bilibili-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffython%2Fuserscript-enhance-bilibili-player/lists"}