Dahan Gong

Results 737 comments of Dahan Gong

Up to now there's no filter in Vomnibar to only show tabs in a same group. Detailed logic about tab matching is in https://github.com/gdh1995/vimium-c/blob/8a2c08f3b1be24b0f41d497d126701f48c9d802d/background/completion.ts#L464 . Browsers like Chrome and Firefox...

As for the 1st point, I'll add a feature, so that when a query contains a word of `:group`, and a current tab has been in a group, Vimium C...

Hello, v1.99.0 supports the `:group` filter, and it has been available on Chrome and Firefox, while the version for MS Edge is waiting for reviews.

Um yes `:group` needs to be a part of query words. Sorry I forgot to mention it. The "tab" completion engine uses "`:` + xxx" in query as special filters,...

This means such pages don't use hidden editable text boxes to capture keyboard events, and then Vimium C can not learn it should not grab keyboard events as usual -...

1. Create an `` 2. make the input `opacity: 0` or `left: 10000px` 3. make the input focused, and listen its `keydown` and `keyup` events to call `event.preventDefault()` on almost...

是因为Vimium C 有好几类“识别可点击元素”的办法,其中一个是隔一阵子汇总一次,你点了硬币按钮后,弹出来的对话框是新创建的,需要几百毫秒的时间来等待“可点击”的信息汇总,才能给LinkHints用上。 这个等待主要是为了性能考虑,攒一批汇总一次,可以节约 CPU。目前没法修改等待时间。 但可以用 ```map Fq LinkHints.activateWithQueue``` 这种方式,连续模式下在“刚模拟点击后的第一次汇总”后会自动刷新 LinkHints,有些之前没被识别的就能识别到了。 也可以在第 2 次触发 `LinkHints.activate` 后的第 1 秒钟内,发现少提示了就立即按 `` 键,会立即进行汇总、刷新 LinkHints。 或者用 Firefox。Firefox 提供专有接口,可以用更低代价来收集这类元素,就没有这个等待了。不过 v1.98.0 版在 Firefox 上有个 bug,正好影响了收集,下个版本会修复。

补充1:`LinkHints`显示着时,随时可以用 `` 来强制收集“onclick 属性有值”的元素,这个操作挺费 cpu,所以默认不收集;而 `` 和 `LinkHints`刚启动第一秒的 `` 会搜集这个。它有时候能收集到更多可点击元素,取决于网页本身怎么写的。 补充2:最彻底的办法,是给 `map f LinkHints.activate` 添加参数,指定某些元素是可点击的,这个就不受收集方式的影响了。参考: https://github.com/gdh1995/vimium-c/wiki/Add-or-remove-hints#zh 。 对于 B 站硬币按钮,可以这么写: ``` map f LinkHint.activate clickable=".mc-box" ``` 补充3:我现在打算加个“第二次显示 LinkHints 时立即汇总”的特性,应该也有用,回头设计设计。

第 1.98.3 版里,LinkHints 连续显示时会强制立即汇总一次,所以一般来说那两个图片按钮都能被识别成“可点击”,所以可以去掉 `clickable=".mc-box"` 再试试了。