Skip to content

Commit

Permalink
revert readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xmcp committed Apr 6, 2024
1 parent 87f8b3d commit 17b4b27
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 19 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module.exports = function(grunt) {
commonjs(),
replace({
preventAssignment: true,
'eval': 'undefined', // https://github.com/protobufjs/protobuf.js/issues/593
'process.env.PAKKU_CHANNEL': `"${channel}"`,
}),
];
Expand Down
56 changes: 38 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,47 @@
A rewritten version of pakku.js
[![Chrome Web Store - Version](https://img.shields.io/chrome-web-store/v/jklfcpboamajpiikgkbjcnnnnooefbhh.svg?style=flat-square)](https://chrome.google.com/webstore/detail/pakku/jklfcpboamajpiikgkbjcnnnnooefbhh)
[![Chrome Web Store - Downloads](https://img.shields.io/chrome-web-store/d/jklfcpboamajpiikgkbjcnnnnooefbhh.svg?style=flat-square)](https://chrome.google.com/webstore/detail/pakku/jklfcpboamajpiikgkbjcnnnnooefbhh)
[![Chrome Web Store - Rating](https://img.shields.io/chrome-web-store/rating/jklfcpboamajpiikgkbjcnnnnooefbhh.svg?style=flat-square)](https://chrome.google.com/webstore/detail/pakku/jklfcpboamajpiikgkbjcnnnnooefbhh)
/
[![Mozilla Add-on - Version](https://img.shields.io/amo/v/pakkujs.svg?style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/pakkujs?src=external-shield)
[![Mozilla Add-on - Downloads](https://img.shields.io/amo/users/pakkujs.svg?style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/pakkujs?src=external-shield)
[![Mozilla Add-on - Rating](https://img.shields.io/amo/rating/pakkujs.svg?style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/pakkujs?src=external-shield)

New Features:
#### [→ 点我安装 ←](https://s.xmcp.ltd/pakkujs/?src=readme_1) (支持 Chrome 和 Firefox)

- Better customization through user scripts
- Parallelization with Web Worker
![logo](https://cloud.githubusercontent.com/assets/6646473/17503651/20b41376-5e24-11e6-8829-6b8a0ccd47a9.png)
# pakku.js
自动合并B站视频中刷屏弹幕的 WebExtension,让您免受各种带节奏弹幕的刷屏之苦

Improvements:
↓ 《千绪的通学路》第5话

- Read blacklist from localStorage bpx_player_profile.blockList
- Supported colorful dm
- Removed background page (reduces ~40MB RAM usage when idle)
- Removed telemetry
![](https://s.xmcp.ltd/pakkujs/comm/1.png)

Code quality improvements:
↓ 哔哩哔哩拜年祭 2018,可见“弹幕密度分析图”功能

- Adopt Manifest V3
- Adopt TypeScript
- Adopt modern JS features (e.g., ES modules, async functions, for-of loop...)
![](https://s.xmcp.ltd/pakkujs/comm/2.png)

Breaking changes:
↓ 【炮姐/AMV】我永远都会守护在你的身边!(av810872),可见“自动调整弹幕大小”功能

- Removed BLACKLIST config (will read player blacklist)
- Removed HIDE_THRESHOLD config (use userscripts to achieve that)
- Removed CLOUD_SYNC config (now depend on browser settings)
![](https://s.xmcp.ltd/pakkujs/comm/3.png)

Work in progress.
↓ 《NEW GAME!》第8话,可见“弹幕信息显示框”功能

![](https://s.xmcp.ltd/pakkujs/comm/4.png)

↓ 电磁炮真是太可爱了(av314),可见统计信息显示

![](https://s.xmcp.ltd/pakkujs/comm/5.png)

### 用户脚本

可以通过 JavaScript 代码来深度自定义 pakku 的功能,详见 [README](userscript_docs/README.md)

-----

### License

[GPLv3](LICENSE.txt)

-----

#### [→ 点我安装 ←](https://s.xmcp.ltd/pakkujs/?src=readme_2) (支持 Chrome 和 Firefox)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"watch": "grunt watch",
"build:chrome": "grunt chrome",
"build:firefox": "grunt firefox",
"build:src": "grunt src",
"build:proto": "proto_translation\\transform_to_module.bat"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion userscript_docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

用户脚本是一项使用 JavaScript 代码来深度自定义 pakku 的功能。可以定义一些回调函数,它们将在 pakku 处理弹幕之前或之后运行,并修改弹幕内容。

使用本功能将假定你有基本的 JavaScript 编程知识。
本功能仅面向高级用户,下面将假定你有基本的 JavaScript 编程知识。

## 添加全局用户脚本

Expand Down

0 comments on commit 17b4b27

Please sign in to comment.