Bilibili Preview
Bilibili in your IDE, without a single popup window.
Install in
Bilibili in your IDE, without a single popup window. A slim tool window on the right: a video list on top, a small player underneath. On-demand videos and live streams both play inside the panel, and browsing, login, likes, coins, favourites and follows all happen there too.
- Browse — Recommend, Popular, Ranking and Live, plus keyword search; one or two columns; infinite scrolling.
- Playback — on-demand video plays inside the panel with no browser window; audio stays in sync; switchable quality; double-click for fullscreen; space and arrow keys.
- Danmaku — off by default for recorded video; the 弹 button in the control bar turns them on and remembers the choice. Scrolling, top and bottom modes, coloured, staggered lanes.
- Parts — multi-part uploads get a part bar under the player; click to switch, or open the grid picker for long series.
- Search — sort results by relevance, views, newest, danmaku or favourites; the choice is remembered.
- Account — once signed in, the login button becomes a personal centre: following feed, favourites, watch history and sign-out.
- Interaction — live like / coin / favourite counts under the player; one click acts, one more undoes it; follow the uploader from the card's right-click menu.
- Comments — the 评 chip opens the comment area: hot / newest sorting, paging and nested replies. Reading needs no login; once signed in you can post comments and replies.
- Live — streams play in the same panel and can be paused. Live danmaku are off by default: light up the 弹 chip at the bottom-left to start them (scrolling, top and bottom fixed, coloured).
- Share — send a title and link to a WeChat friend from the card menu, or just copy the text.
- Inconspicuous — privacy mask, boss key
Ctrl+Alt+H, right-click to hide, custom background colour. - Looks right — full light and dark theme support, no ad slots and no recommendation cards.
JetBrains IDE 2023.2 (build 232) or newer. Live playback uses the built-in JCEF, which ships with all modern IDEs.
Videos, covers and live content belong to bilibili and their respective uploaders. The plugin only previews content: apart from your own settings and login cookie it stores nothing, and it never downloads or caches media files.
The bundled FFmpeg is a GPL v3 build, so the plugin as a whole is distributed under the GNU General Public License v3. The full text is in the LICENSE file shipped with the plugin.
在 IDE 里刷 B 站,不弹任何窗口。右侧一个工具窗口:上方视频列表,下方小播放区。点播和直播 都在里面播,浏览、登录、点赞、投币、收藏、关注也都在面板里完成。
- 浏览——推荐、热门、排行榜、直播、关键词搜索;单列 / 双列切换;滚到底自动加载。
- 点播——面板内播放,不弹浏览器;音画同步;清晰度可切;双击全屏;空格与方向键控制。
- 弹幕——点播弹幕默认关,控制条「弹」一键开并记住;滚动 / 顶部 / 底部、彩色、轨道错开。
- 分集——多 P 视频下方出现分集条,点一下切集;集数多可开网格选集面板。
- 搜索——结果可按综合 / 最多播放 / 最新发布 / 最多弹幕 / 最多收藏排序,选择会记住。
- 个人中心——登录后「扫码」变成「个人中心」:关注动态、我的收藏、历史记录、退出登录。
- 互动——播放区下方「赞 / 币 / 藏 / 评」带实时计数,登录后点一下生效、再点取消;卡片右键关注 UP 主。
- 评论——点「评」展开评论区:热门 / 最新排序、翻页、楼中楼;不登录也能看,登录后可发评论和回复。
- 直播——面板内播放,支持暂停;弹幕默认关,左下角「弹」点亮即收(滚动 / 顶部 / 底部、彩色)。
- 分享——卡片右键把标题 + 链接发到微信,也可以只复制文案。
- 摸鱼——防窥遮罩、老板键
Ctrl+Alt+H、右键隐藏、自定义背景色。 - 体验——浅色 / 深色主题完整适配(含 Darcula 与新 UI),没有广告位和推荐位。
IntelliJ IDEA / PyCharm / WebStorm / GoLand 等 JetBrains IDE,2023.2(build 232)及以上。 直播播放依赖 IDE 内置的 JCEF,现代 IDE 均已内置。
视频、封面与直播内容版权归 bilibili 及相应 UP 主所有。插件只做预览:除你自己的设置与登录 Cookie 外不保存任何数据,也不下载、不缓存媒体文件。
随包分发的 FFmpeg 为 GPL v3 构建,因此本插件整体以 GNU General Public License v3 发布, 全文见插件包内 LICENSE。
Written by Joobi from the project's own listing. See the source page
- 2.7.27 — 修拖窄播放区后直播画面右侧缺一块:调整大小时 ffmpeg 还在按旧尺寸出帧,绘制逻辑按「帧自己多大」直接贴,帧比组件宽时右侧就被裁掉一条(帧比组件窄时则留黑边)。现在尺寸对不上时一律等比缩进组件矩形、居中显示,最多上下留黑边,绝不再缺内容。同时左下角的「弹」「发」改成和暂停按钮一样:鼠标进来才显示、移开就收起,不压画面;弹幕开着或输入框展开时仍常显,保证随时能关掉。
Fixed the right edge of the live picture being cropped after resizing the player: while ffmpeg was still emitting frames at the old size, the painter drew them at their own size, so a frame wider than the component lost its right edge. Frames are now scaled down proportionally and centred whenever the size does not match. The 弹/发 buttons now appear on hover like the pause button. - 2.7.26 — 同一场比赛两个转播间,一个卡一个不卡?因为这根本是两路流:每个主播各自推流、各自编码,码率和帧率差好几倍。登录后插件会自动要「原画」,如果那一路是高码率(比如 1080P60),而机器带宽或分到的 CDN 节点喂不满,画面就会周期性定住、马赛克、声音一起断;低码率那一路同样清晰度却轻松实时。现在可在「设置 → 直播清晰度」把上限压到 720P(与低码率那路等价,画面软一点但不卡),改完当场按新档重开;自动降档成功后还会按房间记住这个稳定档位,下次进同一个直播间直接用,不必再等它卡一遍、降一遍。
Two rooms for the same match are two independent streams with different bitrates. When the high-bitrate one cannot be delivered in real time the picture freezes in cycles. A live quality cap is now available in Settings, and a successful automatic downgrade is remembered per room so the next visit starts at the stable quality directly. - 2.7.25 — 直播「1080P 一卡一卡、画面糊成马赛克」:定位到不是解码慢、也不是带宽打满,而是同一档清晰度的**某个 CDN 节点只送到一半速度**——分片来不及到,ffmpeg 丢掉坏包后必须等下一个关键帧,于是画面定住两秒、再猛放两秒,同一进程的音频跟着断。现在会实时对比「ffmpeg 的内容时间 / 钟表时间」测出真实投递倍率(1.00 为刚好实时),连续两个 4 秒窗口低于 0.85 就先换同档的另一个 CDN 节点(B 站一次返回 2~6 个,以前只用第一个),节点都试过还跟不上就自动降一档清晰度,并在右下角提示「已自动降到 720P」,宁可糊一点也不再卡。状态行会显示「投递 0.81×」方便判断。
Fixed periodic freezes on high-bitrate streams: the plugin only ever used the first CDN node returned by the API, and a slow node makes segments arrive at half the required rate. ffmpeg then drops damaged packets and waits for the next keyframe, freezing the picture for seconds at a time. Delivery rate is now measured from ffmpeg's content time versus wall clock; when it stays below 0.85x the player switches to another CDN node, falls back to a lower quality tier if needed, and says so in the corner. - 2.7.24 — 修直播「越看越卡、声音也断」:2.7.23 用 ffmpeg 统计里的帧/时间反推帧率来自动配速,结果只要网络抖一下或面板较大导致反压,实测值就掉到 10fps 并被采纳,配速从此锁死在 10fps(越慢越测出低值,正反馈),画面变成 10fps 幻灯片,同进程的音频也跟着断流。现在出帧帧率统一交给 ffmpeg 的 fps 滤镜按 PTS 归一为 30fps,Java 侧只按固定 33ms 上屏、不再猜帧率;未压缩帧加了像素预算(上限一帧 1920×1080,实测链路有 642MB/s 余量);音频缓冲从 0.25 秒加到 0.5 秒,分片边界不再「咔」;新增看门狗:进程还活着但 8 秒没有新帧就自动换 CDN 重连(最多 3 次),不用再手动关掉重开。
Fixed live playback degrading over time: the previous adaptive frame rate could latch onto a low measured value (10fps) after a network hiccup and never recover, turning the picture into a slideshow and stalling the audio in the same process. Output is now normalised to 30fps by ffmpeg's fps filter using PTS, the Java side presents at a fixed 33ms cadence, the uncompressed frame size is budgeted, the audio buffer is doubled, and a watchdog reconnects when the process stalls without frames. - 2.7.23 — 直播播放优化:起播探测窗口从 2MB 压到 500KB(原来要等约 8 秒的流才肯出第一帧,实测首帧从 10 秒降到 1 秒级);按 ffmpeg 统计里的帧/时间增量实测真实帧率,不再照容器标称值配速(标称 60、实际 30 的流会被放成「半秒两倍速 + 半秒冻结」);每帧像素搬运改成整块拷贝;画面改双缓冲,去掉快机器上的轻微撕裂;拖窗口改尺寸只在变化超过 25% 时重连;切走 IDE 不再暂停直播(暂停要杀进程重连,回来要重新缓冲);右下角显示源分辨率与帧率,能直接看出清晰度是 B 站给到哪一档。
Live playback improvements: probe window cut from 2MB to 500KB (first frame from ~10s to ~1s), frame rate now measured from ffmpeg's frame/time deltas instead of the container's declared rate, bulk pixel copy, double-buffered frames, resize only reconnects past 25% change, live no longer pauses when the IDE loses focus, and the source resolution/fps is shown in the corner. - 2.7.22 — 直播弹幕输入框修三处:发完一条不再自己收起(只有再点画面里的「发」才收,发完清空并保留焦点,方便连发);输入框和「发送」按钮改成自绘,跟着面板明/暗换色,不再是深色面板下一块白底;首页下拉选中频道后弹层会自己关掉,不用再点一下空白处。
Live danmaku fixes: the input no longer collapses after sending (only the on-video "Send" button closes it; the field clears and keeps focus for consecutive posts), the field and Send button now repaint themselves to follow the light/dark panel, and the home-channel dropdown now dismisses itself after a pick. - 2.7.21 — 直播画面左下角的「发」按钮改成和「弹」完全同款:同样大小的圆角方块、紧贴「弹」右边,点一下点亮成蓝色并展开输入框,再点收起且不留空条;切直播间 / 离开时自动收起。
The live "Send" button now matches the "Danmaku" button exactly: same rounded square, right next to it, lights up blue and expands the input on click, collapses on the next click with no empty strip left behind. - 2.7.20 — 直播的发弹幕改成和视频播放区一样的两态「发」按钮:默认画面下方只有一个小的「发」按钮,点一下展开输入框(按钮点亮成蓝色),再点一下收起并清空;Enter 发送、Esc 收起,未登录点「发」提示扫码。按钮和发送条也跟随明/暗面板配色。
Live danmaku now uses the same two-state "Send" button as video playback: a small button that expands the input on click (highlighted blue) and collapses it on the next click; Enter sends, Esc closes, and a login hint appears when signed out. - 2.7.19 — 工具栏右侧那组按钮收紧了:开遮罩、个人中心、明暗切换、设置之间的间距从 14~24px 压到 6~10px,整组看起来是一块,不再松松散散;窄窗口退化成纯人形图标后也不会出现「…」截断。
Tightened the right-hand toolbar group (mask, account, theme, settings) into a compact cluster, with no truncated account text in narrow windows. - 2.7.18 — 浅色面板下选中的频道 / 排序标签不再是一块深色(近黑)底:选中胶囊换成柔和浅蓝底 + 蓝色文字,和工具栏首页芯片一致;悬停底也改成浅灰。深色面板仍用原来的低饱和深蓝。
Selected channel and sort chips now use a soft light-blue background on light panels instead of a near-black block, matching the toolbar chip; dark panels keep their deep blue. - 2.7.17 — 卡片背景色也跟着太阳/月亮按钮切换了:以前卡片、文字、边框、评论区、播放区只读 IDE 的明暗主题,IDE 是深色时把面板切成白色,卡片还是一块块深灰;现在整套配色统一跟随面板明暗,浅色面板配浅色卡片和深色文字,深色面板保持原样。
Video cards and the rest of the panel now follow the light/dark panel switch, not only the IDE theme: no more dark cards on a light panel. - 2.7.16 — 修「点了太阳切到白色背景,首页下拉和搜索框还是黑的」:工具栏自绘控件的配色以前读的是 IDE 主题,而不是切换后的面板颜色;现在统一按面板色走,首页芯片、搜索框、图标、关遮罩文字和下拉菜单都会一起变浅 / 变深。
Fixed the source chip and search box staying dark after switching the panel to light: all toolbar colors now follow the panel theme instead of the IDE look-and-feel. - 2.7.15 — 工具栏按最初设计图重做并补齐细节:放大镜 / 圆形刷新 / 人形 / 太阳全部换成同一套细线描边图标,首页是蓝底圆角 + 下拉箭头、搜索框带放大镜和清除 ×、个人中心改成向上拱肩的干净小人。太阳现在是「一键切换面板明/暗色」(浅色 ↔ 深色,设置里记住),设置图标换成精致的线性齿轮并挪到最右。窄窗口(单列)时先压缩搜索框、间距、把个人中心收成纯图标,尽量让所有功能区挤在一行,实在放不下才整组换行。首页下拉菜单也换成同款圆角胶囊样式:细边、28px 行高、选中项蓝底蓝字,不再是方角深灰的原生菜单。顺带修了下拉菜单弹到窗口外、搜索框出现两个放大镜的问题。
Toolbar rebuilt to match the design: consistent thin-stroke icons, blue rounded source chip, search box with magnifier and clear button, cleaner person icon. Sun toggles panel light/dark; settings is now a gear icon at the far right. Narrow tool windows keep all controls on one row as long as possible by shrinking the search field and collapsing the account to an icon, wrapping only when truly necessary. The source dropdown now uses the same rounded capsule styling. - 2.7.14 — 工具栏重排:宽窗口时「首页 / 搜索 / 刷新」靠左、「遮罩 / 个人中心 / 设置」靠右,中间留白推开;窄窗口(贴边工具窗口常见)时不再把某一组从中间劈开导致「搜索掉到第二行、另一半浮在上面」,而是整组换行、两行各自左对齐。同时去掉「个人中心」按钮和「首页」下拉自带的那块深色底(深色主题下像两块黑斑),改为透出工具栏底色、文字用主题蓝。播放区高度上限从 650 提到 1000。
Reworked the toolbar: left group and right group sit at opposite ends on wide windows and wrap as whole groups (no mid-group split) on narrow ones; removed the dark boxes behind the account button and source dropdown; player height max raised to 1000. - 2.7.13 — 2~4 列的卡片底部那行「UP 主 · 播放量 · 时间」不会再被裁掉了:卡片高度以前写死 168,列一多封面就把文字区挤没,只有 1 列时能看全。现在高度按列宽算(16:9 封面 + 两行标题 + 一行元信息),元信息从卡片底边往上定位,卡片再矮也先保它;标题固定两行、超出用省略号。时间和播放量的顺序也统一成「播放量在前、时间在后」,和列表样式、鼠标悬停提示完全一致。窄卡片里名字先占位、放不下才省略,统计放不下时才省掉「播放」二字并缩写年份。顺带修了卡片少时被 GridLayout 平均拉成一屏一条的问题。
Fixed the subtitle row (uploader · views · publish time) being clipped in 2–4 column layouts: card height now follows column width, the meta row is anchored to the bottom edge, and the title stays two lines with an ellipsis. Time now always comes after view count. - 2.7.12 — 评论区的发送框现在会真的收起来:不写东西时底部只留一个「+ 写评论」入口,点某条评论的「回复」才展开输入框,点「取消」或按 Esc 就把输入框收回去、把高度还给列表。以前点「取消」只藏了「回复 @某UP」那一行,下面的大输入框还杵在那儿,看着像没取消掉。另外修了评论行底部「回复」的位置:绘制用的基线和点击热区差了七八个像素,楼中楼那行尤其偏下、经常点不准,现在两者严格对齐,热区也加宽了一点。
The comment composer now actually collapses: idle shows a single "+ 写评论" entry, expands on reply, and Cancel/Esc folds it back. Also fixed the "回复" link on every comment row being drawn several pixels below its click area (worst on nested replies). - 2.7.11 — 视频卡片带上发布时间:网格 / 列表副标题和鼠标悬停提示里都显示「今天 10:30 / 昨天 17:39 / 11月6日 / 2024-11-06」,接口给了 pubdate 就能显示;列表副标题原来那个时长角标重复了,改放发布时间,封面上的时长角标保留。
Video cards now show the publish time in their subtitle and hover tooltip, following the same relative format as the web UI. - 2.7.10 — 评论区点「取消」现在会彻底退出回复态:隐藏「回复 @…」那一行、清空这条回复的草稿并归还焦点,还会显式重画发送区,避免状态已经退出、屏幕上那行字却赖着不走。在输入框里按 Esc 也能取消回复。
Canceling a comment reply now fully resets the composer (hides the reply hint, clears the draft, repaints the area); Esc works too. - 2.7.9 — 修「点开完全没声音」:这类视频的音轨地址被分到了 B 站 P2P 节点(`*.mcdn.bilivideo.cn`),节点下到一半 reset 时,原来那条「先把整条音频下载转 WAV」的路会一直卡在下载上——不报错、不出文件、也不出声,日志里连一条 audio ready 都没有。现在有 ffmpeg 就一律走边解边播(挂上只要十几毫秒,不用先下载),转码增加「20 秒没有进度就放弃」的看门狗,媒体地址也优先挑正规 CDN、避开 P2P 节点;万一还是等不到声音,播放页会直接提示,不再让人对着静音猜。
Fixed videos that played with no sound at all: audio now streams through ffmpeg instead of downloading the whole track first, P2P CDN hosts are avoided, and a stalled transcode gives up with a visible hint. - 2.7.8 — 修首次点卡片播放区空白:部分 IDE 里 JCEF 的 cookie manager 尚未就绪时 `getJBCefCookieManager()` 会直接抛 IllegalArgumentException,以前这个异常打断了 loadUrl(),真正加载播放页的那句根本没执行;现在写 cookie 全程兜底,失败只跳过 cookie,不影响点开即播。
Fixed a blank player on first click: cookie setup failures no longer prevent the player page from loading. - 2.7.7 — 修两个首次播放问题:首次点卡片时内核能力探测的超时回调跑在 Timer 线程而非 EDT,动不了 Swing 组件树,要再点一次才播,现在切回 EDT 执行;只有 H.264/HEVC 的视频走兼容转码时,音轨转好挂上来却没有恢复播放状态,点开无声、点一下画面才有声,现在页面在播就自动跟上。
Fixed first-click playback and silent audio on H.264-only videos that use the compatibility transcoder. - 2.7.6 — 长视频播放健壮性:CDN 中途掐线时本地代理会强制断开连接让浏览器按 Range 自动续传(以前悄悄少给字节,画面就卡住、缓冲条不动,只能手动换清晰度);画面真卡住超过 8 秒会从原位自动重拉这一档,最多 3 次。音轨侧去掉快进时重复发的 seek(ffmpeg 不再连开两次),缩短纠偏节流,修正倍速下声音补偿多丢一倍的问题,慢起播的补偿也压到 1.2 秒。
Hardened long-video playback: stalled streams now recover by re-requesting the current range, and seeking no longer restarts the audio decoder twice. - 2.7.5 — 切换左上角的数据源下拉会退出当前搜索:搜索词和搜索结果一起清掉,列表换成新数据源的内容,不会再把上一次搜索的卡片带到首页 / 热门 / 直播里。
Switching the source dropdown now clears the active search and loads that source's feed instead of leaving old search results on screen. - 2.7.4 — 修关注状态的误判:之前用的 `archive/relation` 里那个字段对已关注的 UP 主也会回 0,点完关注成功、换个同 UP 的视频右键又变「+ 关注」。现在按网页版那套关系属性判定(0 未关注 / 2 已关注 / 6 互关),并且按 UP 主而不是按视频记状态,同一个 UP 的其它卡片也会同步显示「已关注」。
Fixed follow-state detection: it now uses the same relation attribute as the web UI and caches by uploader, so every video from a followed UP shows the correct state. - 2.7.3 — 首页频道的「全选」按钮会随勾选状态变成「全不选」,全不选时标签栏只留「推荐」;卡片右键的关注项也不再并排两个选项,而是按当前状态显示「+ 关注」或「✓ 已关注 · 点击取消」,登录后自动查一次,点完状态行和气球都会给反馈,重复关注不再误报成操作失败。
The channel picker now toggles between Select All / Select None, and the card menu shows the UP owner's follow state with a single toggle item. - 2.7.2 — 发弹幕的输入框可以收起来了:再点一次「发」、点画面别处或按 Esc 都会关闭,按钮点亮时表示输入框正开着;发送成功照旧自动收起。播放区高度(横排时是宽度)上限从 550 提到 650,滑块和拖动把手范围同步放宽。
The danmaku input now toggles shut (click 发 again, click elsewhere, or press Esc); the player-size limit is raised from 550 to 650. - 2.7.1 — 修「综艺」频道一片空白:综艺的 UGC 分区(rid=71)在 B 站那边早就没内容了,新榜单接口直接 -400、老榜单只回一条兜底、最新投稿 0 条,三条路都空。现在这类以影视版权为主的分区改读 PGC 的节目列表(一季一张卡,副标题显示「更新至第4期」),点开自动落到第一集——PGC 的每一集本身都挂着一条主站稿件,播放、弹幕、评论、互动都沿用原来的链路,可以一直往下翻页。
Fixed the empty Variety channel: its UGC region has no content left on Bilibili, so the channel now lists PGC seasons instead and opens the first episode of a season. - 2.7.0 — 下拉里加「首页」并排在第一位:顶部一条频道栏(番剧 / 国创 / 综艺 / 动画 / 鬼畜 / 科技数码 …),点哪个就看哪个区的热门。频道栏按面板宽度自动排,摆不下的收进「更多」,极窄时收成一颗「频道」按钮;设置里可以勾选要显示哪些频道。番剧、资讯这类没有 UGC 榜单的分区自动退回「最新投稿」。顺手把播放区高度上限从 460 提到 550。
New Home source with a width-aware channel bar (anime, variety,
Follow this listing's changes (Atom feed)