bv2av

Change bv to av

Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn

  • v1.19 2024/05/31

    格式化代码

  • v1.18 2024/05/31

    如果浏览器支持则使用 Navigation API

  • v1.17 2024/05/31

    修复稍后再看 bvid 参数(删除 /watchlater/ 网址匹配的 trailing slash)

  • v1.16 2024/05/31

    使用 replaceState 来修改 window.location.href,这样的话一开始的 BV 号网址不会出现在历史记录中,可以避免后退到 BV 号然后又自动切换到 av 号,污染历史记录。

    另外,对代码进行了格式化。

  • v1.15 2024/02/06

    Use a new conversion algorithm

  • v1.14 2024/01/30

    Support recent large av numbers.

  • v1.13 2022/07/24

    对稍后再看的页面/链接禁用,因为这些地方貌似不认 av 号

  • v1.12 2021/06/11

    修复 BV 可以 /BV 而 av 必须 /video/av 的问题

  • v1.11 2020/06/11 only transfer www.bilibili.com
  • v1.10 2020/06/10 don't change window href when it contains "bvid="
  • v1.9 2020/06/10 fix regex syntax error
  • v1.8 2020/06/10 fix a bug about href and don't transfer bvid=*
  • v1.7 2020/06/09 don't transfer *.bilivideo.com, requested by @風の狸
  • v1.6 2020/03/24 修改 div 的 title 属性,如右上角动态
  • v1.5 2020/03/24 Match more sites including dynamic
  • v1.4 2020/03/23 Use for of
  • v1.3 2020/03/23 Use window.history.pushState instead of window.location.replace
  • v1.2 2020/03/23 Roll back to 1.0
  • v1.1 2020/03/23 Add "av" prefix
  • v1.0 2020/03/23