Skip to content

Commit

Permalink
Bump 1.0.4.0 (#17)
Browse files Browse the repository at this point in the history
* 引入 toastr 作为通知组件

* 评论接口更新

* 优化各页面实现

* 更新页面资源

* 禁止自动填充发送弹幕

* 实现投币功能

* 实现收藏功能

* Rename inset-area to position-area

* 实现关注功能

* 更新埋点上报脚本拦截

* BiliHeader UserStatus 兼容处理

* 【充电】风险提醒

* 使用请求收藏和投币窗口

* 视频工具栏稍后再看功能

* 实现追番功能

* 【承包】风险提醒

* 修改站点发布工作流

* bump 1.0.4.0
  • Loading branch information
MotooriKashin authored Sep 18, 2024
1 parent 2a9b9cc commit a2f4919
Show file tree
Hide file tree
Showing 956 changed files with 20,562 additions and 41,341 deletions.
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
@MotooriKashin.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
branches:
- 'master'
paths:
- 'src/docs/**'
- 'src/options/**'
- 'src/player/**'

# 也可以在 GitHub Actions 手动运行
workflow_dispatch:
Expand Down Expand Up @@ -48,11 +49,11 @@ jobs:
- name: Build and release
run: npm run github-pages

# 上传网页资源(位于 /src/docs/ 目录)
# 上传网页资源(位于 /dist/options/ 目录)
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: './src/docs/'
path: './dist/options/'

# 部署网页
- name: Deploy to GitHub Pages
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
node_modules
dist/_metadata
dist/**/*.js
dist/**/*.css
dist
*.crx
*.pem
*.map
35 changes: 0 additions & 35 deletions .vscode/css.css-data.json

This file was deleted.

13 changes: 0 additions & 13 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"problemMatcher": [],
"label": "npm: build",
"detail": "node scripts/build.mjs"
"detail": "node --experimental-strip-types ./src/build/index.ts"
}
]
}
56 changes: 1 addition & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1 @@
<div align="center">
<img src="src/player/assets/image/panel.gif" alt="logo">

# Bilibili 2019
恢复 2019 年 12 月 09 日前的部分[B站](https://www.bilibili.com/)页面,为了那些念旧的人

</div>

---
这是一个[Google Chrome](https://www.google.com/chrome/)[manifest V3](https://developer.chrome.com/docs/extensions/mv3/manifest/)扩展项目,恢复 2019 年 12 月 09 日前的部分[B站](https://www.bilibili.com/)页面,尤其是那个小电视播放器。
项目前身是[Bilibili-Old](https://github.com/MotooriKashin/Bilibili-Old)油猴脚本,在B站原始页面的基础上修修补补了四年多,奈何实在老旧,难以为继,于是有了推倒重来的念头。加上[manifest V3](https://developer.chrome.com/docs/extensions/mv3/manifest/)标准的推行,油猴脚本前途未卜,索性转为扩展项目。
由于 HTML + js + css 都不再复用,从零开始手搓,肯定做不到完全复刻当年的模样,请多见谅!

---
# 功能
各种页面正在慢慢搭建中……
- 播放器
+ 视频
- [x] DASH
- [x] flv
- [x] 本地视频文件
+ 弹幕
- [x] 普通弹幕(mode1/4/5/6)
- [x] 高级弹幕(mode7)
- [x] 代码弹幕(mode8)
- [x] BAS弹幕(mode9)
- [x] 本地弹幕文件
+ 字幕
- [x] 在线 CC 字幕
- [x] 本地 vtt 文件
- 评论
+ [x] 翻页
- 页面
+ [x] B站主页
+ [x] av
+ [x] Bangumi

---
# 安装
- 欢迎在安装之前访问核心[播放器页面](https://motoorikashin.github.io/Bilibili-2019/)体验一下旧版播放器
- 若要安装,则要求使用最新的[Google Chrome](https://www.google.com/chrome/)浏览器(当前要求核心版本 125 以上,以后只会更高,恕不另行通知,且暂时无暇理会任何兼容性需求)。
1.[RELEASE](https://github.com/MotooriKashin/Bilibili-2019/releases)页面下载最新的版本
2. 解压到本地磁盘任意目录
3. 打开 Chrome [管理扩展程序](chrome://extensions/)页面打开右上角的【开发者模式】
4. 点击【加载已解压的扩展程序】按钮加载刚解压出的文件所在目录
5. 更新版本请重复上述步骤

另外,也可以克隆项目到本地手动构建,参看[代码贡献指南](.github/contributing.md)

# 维护
欢迎念旧的人一起搭建记忆中的Bilibili,这里有一份简易的[代码贡献指南](.github/contributing.md)供参考

---
# 开源
[MIT License](LICENSE)
重构 B 站旧版页面
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"scripts": {
"build": "node scripts/build.mjs",
"arbitrary-extensions": "node scripts/arbitrary-extensions.mjs",
"github-pages": "node scripts/github-pages.mjs"
"dependencies": {
"flv.js": "*",
"protobufjs": "*"
},
"devDependencies": {
"@types/chrome": "*",
"@types/fs-extra": "*",
"esbuild": "*",
"navigation-api-types": "*"
"fs-extra": "*"
},
"dependencies": {
"buffer": "*",
"events": "*",
"protobufjs": "*"
}
"scripts": {
"build": "node --no-warnings --experimental-strip-types ./src/build/index.ts",
"arbitrary-extensions": "node --no-warnings --experimental-strip-types ./src/build/arbitrary-extensions.ts"
},
"type": "module"
}
1 change: 0 additions & 1 deletion scripts/README.md

This file was deleted.

72 changes: 0 additions & 72 deletions scripts/build.mjs

This file was deleted.

49 changes: 0 additions & 49 deletions scripts/github-pages.mjs

This file was deleted.

1 change: 0 additions & 1 deletion src/README.md

This file was deleted.

File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,20 @@
"xmlhttprequest"
]
}
},
{
"id": 7,
"action": {
"type": "block"
},
"condition": {
"requestDomains": [
"s1.hdslb.com"
],
"urlFilter": "reporter-pb",
"resourceTypes": [
"script"
]
}
}
]
File renamed without changes.
File renamed without changes
Binary file added src/assets/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12blocksetting.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12blocksetting: string;
export default svg_12blocksetting;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12checkbox.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12checkbox: string;
export default svg_12checkbox;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12close.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12close: string;
export default svg_12close;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12danmuhistory.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12danmuhistory: string;
export default svg_12danmuhistory;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12danmulist.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12danmulist: string;
export default svg_12danmulist;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12delete.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12delete: string;
export default svg_12delete;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12down.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12down: string;
export default svg_12down;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12iconcomment.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12iconcomment: string;
export default svg_12iconcomment;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12icondanmu.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12icondanmu: string;
export default svg_12icondanmu;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12iconfollowed.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12iconfollowed: string;
export default svg_12iconfollowed;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12iconplayed.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12iconplayed: string;
export default svg_12iconplayed;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12left.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12left: string;
export default svg_12left;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12more.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12more: string;
export default svg_12more;
File renamed without changes
2 changes: 2 additions & 0 deletions src/assets/svg/12refresh.d.svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const svg_12refresh: string;
export default svg_12refresh;
File renamed without changes
Loading

0 comments on commit a2f4919

Please sign in to comment.