Greasy Fork is available in English.

Bilibili AntiBV

自动在地址栏中将 bv 还原为 av,非重定向,不会导致页面刷新,顺便清除 search string 中所有无用参数

Installer ce script?
Script suggéré par l'auteur

Vous pourriez également aimer Bilibili 哔哩哔哩视频点踩.

Installer ce script
Auteur
神代綺凛
Installations quotidiennes
0
Installations (total)
6 744
Notes
58 2 1
Version
1.9.6
Créé
23/03/2020
Mis à jour
16/03/2024
Licence
WTFPL
S'applique à

关于 BV 转 av

该脚本会按以下优先级获取 aid

  1. window.__INITIAL_STATE__.videoData.aid 弃用,在无刷新跳转视频时更新不及时
  2. window.__INITIAL_STATE__.aid 弃用,在无刷新跳转视频时更新不及时
  3. window.aid 弃用,无了
  4. 使用 URL 中的 bvid 进行计算,算法来源

另外会从 URL 中去掉 search string 中除了 pt 以外的参数,hash 部分则会完整保留以保护评论跳转行为

关于 /s/video/xxx 重定向

从某些搜索引擎进入的视频页可能会是 https://www.bilibili.com/s/video/BV***,脚本会自动重定向至 https://www.bilibili.com/video/BV***

该能力默认启用,你可以在脚本菜单中开启或关闭

关于稍后再看

由于稍后再看不支持 av 地址,因此脚本不会对稍后再看地址进行转换,否则会影响前进、后退、刷新等行为