vimium-c
vimium-c copied to clipboard
页内搜索的高亮块在 GitHub 代码文件页面中会覆盖代码
Describe the bug
The highlight covers in-page search results of GitHub file code page
页内搜索的高亮块在 GitHub 代码文件页面中会覆盖代码
To Reproduce
Steps to reproduce the behavior:
以本仓库的tsconfig.json为例,
当我也本页面输入/启用页内搜索后,再键入path并查找结果到文件代码区域,高亮颜色会覆盖代码内容。
Browser, OS and Vimium C versions
- Browser name: Microsoft Edge
- Browser version: 126.0.2592.24 (正式版本) beta (64 位)
- Vimium C version: 1.99.99
- OS name and version: Windows 11 Version 23H2 (Build 22635.3646)
搜索后,摁 v 进入 visual mode 高亮就变成不遮挡的蓝色了
这个是 GitHub 页面的实现和 vimium c 冲突了:
- 它用一个“文字完全透明”的文本框(textarea)套到彩色渲染的文字 div 上,然后手动处理选中文字之类的鼠标、键盘事件。
- 但是 Vimium C 会对选中的文字强加橙黄色的背景色,导致 textarea 里透明的文字出现了不透明的背景色……
估计没好办法,我回头慢慢想吧