Closed xplorld closed 6 years ago
当你看到一个 av 号,不能点开,还需要搜索,就很不爽
A chrome extension
in any HTML page: if exist av\d+ in content, replace to <a href="http://bilibili.com/video/av123...1"> av123...1</a>, others similar
av\d+
<a href="http://bilibili.com/video/av123...1"> av123...1</a>
set up several rules.
Rule = match(regex) + replace(HTML)
a link may be disturbing. Maybe a 下拉菜单 is acceptable?
@ComMouse: 神秘代码转换器
如果做成右键下拉菜单就不需要在打开网页时候扫描了, 0 overhead, 但是不知道体验如何,还得选中
我应该是全东岳最没有行动力的人了。。。
Thank @clouduan for the implementation!
@xplorld
ruiyang 这样的 CMU 大佬只需要发需求就好了,实现的工作交给我们这样的来做 :微笑:
sad_rabbit.jpg
motivation
当你看到一个 av 号,不能点开,还需要搜索,就很不爽
spec
A chrome extension
in any HTML page: if exist
av\d+
in content, replace to<a href="http://bilibili.com/video/av123...1"> av123...1</a>
, others similarfeatures
design
set up several rules.
Rule = match(regex) + replace(HTML)
alternative designs
a link may be disturbing. Maybe a 下拉菜单 is acceptable?
evaluation