Bilibili AntiBV

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

As of 2021-02-09. See the latest version.

Author
神代綺凛
Ratings
0 0 0
Version
1.8.0
Created
2020-03-23
Updated
2021-02-09
Size
3.11 KB
License
WTFPL
Applies to

关于 BV 转 av

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

  1. window.__INITIAL_STATE__.aid
  2. window.__INITIAL_STATE__.videoData.aid
  3. window.aid
  4. bvid进行计算,算法来源

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

关于 /s/video/xxx 重定向

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

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