Skip to content

Releases: ImSwordTooth/findwhatever

v4.1.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 23 Apr 07:35
  • 现在遍历节点时会跳过 display 为 none 的元素

举例来说:有个 tabs,搜索 “se”,tabA 和 tabB 都有内容
在此之前,会同时搜到两个 tab 的内容,会出现很多没出现在屏幕中的结果;
修改之后,会只出现当前 tab 的结果,结果更加合理;当切换 tabs 时,会触发 dom 的检测,自动更新结果。
另外为了弥补跳过元素可能造成的结果遗漏,自动检测(MutationObserver)添加了对特定元素属性的检测,具体为 ['class', 'style', 'hidden', 'open', 'selected', 'aria-expanded', 'aria-hidden'],比如这里的 tabs 切换就不会增删元素,只会修改元素的属性。
还添加了 dom 更新后的防抖(200ms)。
这样既避免了大量不可见的结果污染列表,还能在不太影响性能的前提下找到所有结果。

当然不是所有网页都很完美,比如 github 就有很多奇怪的 shadowroot、textarea,能满足大部分网页就已经是进步了。

  • 提取正则表达式的判断和生成,放到公共部分,不再在每个 iframe 中都运行一遍了
  • 合并异步请求,优化查询速度
  • 优化代码
  • 去除 i18nnext 带来的广告信息

v4.0.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 02 Mar 07:28

添加 8 国语言,重写 i18n

v3.10.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 26 Feb 03:17
  • 兼容阿拉伯语(和其他语言)的单词边界
  • 正则表达式现在默认开启 Unicode 模式
  • 设置页添加更新日志
  • 修复一些 shadow-dom 的 bug

v3.9.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 03 Feb 07:43
  • 检测过于宽泛和不合法的正则表达式,并给出提示 #22
image

v3.8.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 30 Jan 01:38
  • 添加主题色功能,可设置暗色模式和亮色模式下各自的主题色
image image image image

v3.7.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 01 Dec 02:14
  • 修复正则模式查找结果的文本长度始终一致的问题
  • 优化查找的循环

v3.6.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 27 Nov 01:34
  • 添加了规范化过程中不可克隆 shadowroot 的兼容方案 #19

v3.5.2

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 13 Nov 10:23

3.5.1 忘记发 release 了 : )

  • 修复查找结果在规范化过程中存在注释节点时高亮下标可能错乱的bug
  • 优化设置页样式 #18
  • 设置页新增颜色模式和毛玻璃效果的说明和预览

v3.5.0

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 10 Oct 07:43
  • 添加深色模式,并支持在设置页切换 #18

v3.4.1

Choose a tag to compare

@ImSwordTooth ImSwordTooth released this 01 Oct 00:09
  • 去除 svg 的搜索限制,可以搜索到 svg 里的文本了 #17