• Stars
    star
    2,003
  • Rank 23,013 (Top 0.5 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

拯救B站的弹幕体验!

Build Status / Chrome Web Store - Version Chrome Web Store - Downloads Chrome Web Store - Rating / Mozilla Add-on - Version Mozilla Add-on - Downloads Mozilla Add-on - Rating

→ 点我安装 ← (支持 Chrome 和 Firefox)

logo

pakku.js

自动合并B站视频中刷屏弹幕的 WebExtension,让您免受各种带节奏弹幕的刷屏之苦

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

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

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

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

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

开放 API

可以通过 HTML5 Messaging API 来利用 pakku 干更多的事情,例如修改弹幕列表、跟踪换P操作、进行对弹幕的可视化等等。

v10.0+:

  • 在每个B站播放器页面,当弹幕加载完成时,会向页面自身发送一条内容为 {type: 'pakku_event_danmaku_loaded', pakku_version: '...', cid: ...} 的消息。你可以用 window.addEventListener('message', callback) 来接收这一消息。
  • 调用 window.postMessage({type: 'pakku_get_danmaku'}, '*') 可以获取当前弹幕内容,弹幕将会通过 {type: 'pakku_got_danmaku', resp: [...]} 形式的消息返回。
  • 调用 window.postMessage({type: 'pakku_get_danmaku_with_uid'}, '*') 可以获得弹幕的发送者信息,弹幕将会通过同样的方式返回,但返回的列表中包括了 cracked_uid 属性。
  • 调用 window.postMessage({type: 'pakku_set_danmaku_bounce', danmakus: [...]}, '*') 可以更新当前弹幕内容。

请注意,上述接口没有文档,不保证能够正常工作,随时可能改变,任何 bug 都是 feature。

一个简单的 Demo 参见 pakku-advanced-filter


License

This is free software, and you are welcome to redistribute it under GPLv3.

Also, you can redistribute the CRC32 Cracker component under MIT License.

See LICENSE.txt for details.


→ 点我安装 ← (支持 Chrome 和 Firefox)


高级用户请不要错过 按发送者UID屏蔽弹幕 的用户脚本。

More Repositories

1

GoFW

Chrome 扩展:麻麻再也不用担心 Google API 抽风了
JavaScript
228
star
2

webhole

Hole react frontend
JavaScript
147
star
3

bilibili-ban-list

居家旅行常备的B站弹幕屏蔽列表
147
star
4

xmpaint

处理有向图的有力工具
Python
72
star
5

HEED-GUI

在选课季有一些作用的小玩意
Python
62
star
6

ReAM

从零开始的键盘记录器
Python
53
star
7

ACFan

名副其实的自动AC机
Python
42
star
8

QRCD

QQMusic lyrics crawler & decoder
HTML
31
star
9

elective-dataset-2021spring

某学校选课系统GIF验证码数据集 + Baseline模型 + 上下游相关工具
Python
29
star
10

pku-eutopia

兆京大学班车预约 for Humans™
JavaScript
26
star
11

pakku-mobile-proxy

To invoke pakku on Bilibili mobile app
JavaScript
23
star
12

pakku-advanced-filter

B站弹幕屏蔽Pro+
JavaScript
21
star
13

bilibili-id-displayer

用户脚本:显示B站视频av号、BV号、弹幕CID
JavaScript
20
star
14

pku-syllabus

PKU课表助手
JavaScript
14
star
15

ddl-phoenix

the deadline manager: front-end
JavaScript
13
star
16

reader

Simple HTML5 Text Reader
HTML
12
star
17

atoz

(a course project) SysY-to-RISCV compiler
C++
11
star
18

pakku.py

The eternal danmaku devil on bilibili
Python
9
star
19

yosoro

来给大家做现场的SIF表演
HTML
8
star
20

misaki

录屏工具条
Python
7
star
21

pkugkd

P大网关(PKU Gateway Keeping Daemon)for Chrome
JavaScript
7
star
22

bilipager

B站分P切换侧边栏
JavaScript
7
star
23

whatclass

What class is it now?
JavaScript
6
star
24

cer

多人在线联机史诗级网游……嗯……单词接龙
HTML
6
star
25

pytrade

HTTP Proxy for Humans
Python
6
star
26

botzone-mccts

the BotZone AI in your own computer, with ~10s time limit!
Python
5
star
27

tiroFinale

HTTP(S) Proxy in Python
Python
5
star
28

webscore

My Score react frontend
JavaScript
5
star
29

pyMatcher

OI 业界良心系列 简易的评测程序,秒杀cena(大雾
Tcl
4
star
30

ddl-bee

the deadline manager: back-end
Python
4
star
31

chemcalc

计算原子量的有力工具 (非清真)
Python
3
star
32

loveliv

Personal LoveLive SIF Event Tracker
Python
2
star
33

browser-testbench

史诗(误)
JavaScript
2
star
34

xkmod

abandoned
JavaScript
2
star
35

xkmad

自动抢课插件
Python
2
star
36

qmdown

通过iFile网页服务器下载iOS版QQ音乐的已缓存歌曲
Python
2
star
37

defuz

OI界良心系列:数据生成器
Python
2
star
38

tilt-controller

Remote control via gyroscope
JavaScript
2
star
39

waver

Wave file generator
Python
1
star
40

WanZi

NetenSec Content Filter Cracker
JavaScript
1
star
41

misaka

Mathematica Input Sequence Analyzer and Keystroke Assistant
Python
1
star
42

renamer

批量文件重命名工具
Tcl
1
star
43

kylinOJ

[ABANDONED] Ultra-Safe Online Judge System Based on VirtualBox
Python
1
star
44

osufm

Osu Flame Master: The Human Way to Search and Download Osu! Beatmaps
HTML
1
star
45

JudgeLight

代码一键提交OJ,刷题必备
Python
1
star
46

LrcPlayer

A simple react audio player with lyrics
JavaScript
1
star
47

9alpha

A tool for chrome extensions that modify HTTP response
JavaScript
1
star