-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add color or change background color on match after the search with / ?? #481
Comments
This should work: /* #find:host */
::selection {color: #000000 !important; } During my tests, it works on Vimium C Options page, MS Edge 95 and Win 10. Whenever you change selection color or background color, you need to change the query on Find HUD to tell your browser to redraw the selection area. |
Um, there's a small issue about live preview for |
How do I do this ?? After first match I press Esc and again n nothing is changed. Same colors... |
Um, up to now |
Then I'll fix it. |
When I open shadow-root the first line is <style type="text/css">::selection { background: #ff9632 !important; }</style> The color is never added , and I can't find the color that I have added... Now I am trying to some how change the colors to see if it reflects in the UI somehow. |
If you have: entered I think there should be another section, maybe named |
A correct result should look like: <div>
<!-- shadow root -->
<style type="text/css">::selection { background: #ff9632 !important; }</style>
<style type="text/css">html, body, * { user-select: auto; } ::selection { color: red !important }</style>
</div> |
Nope I don't have that. Tried in google-chrome (current version 95.0.4638.69 ) as well same thing. Just to be clear after every change I restart the browser to be on the safe side. |
What's your "custom CSS" (the whole text)? What're your Vimium C version and OS name? |
Custom Css /* #find:host */
::selection { color: #000000 !important; } Vimium C 1.94.0, Firefox 94, Linux. OS Manjaro XFCE |
This is the workflow |
Oh. Please not press |
How do I traverse then and keep the styles ? |
What do you mean by "keep" and "the styles"? If you want to edit the first |
Am If I don't press Enter how will I traverse to the next match ?
I mean I would like to traverse to next match while background is orange and color is black. |
When Find HUD is focused, you may use |
Thanks, this works. But its easier with n and N
I really hope you implement this. I look forward to the next version. Thanks for Your time. |
Hello, on Firefox Add-Ons Vimium C v1.95.0 has been released, and then you may use |
Thanks... Just updated and it works great. Cheers... |
Hello, just wanted to say nice extension.
Like the question states... This is similar to #271
The problem:
I use firefox with dark mode on. When I search for a word with
/
and hit Enter the background color is#ff9632
and remains the same after every next n key press,while the letters are unreadable because the color is
#ffffff
.Also the color sometimes changes to green on first Enter hit.
What I tried
Even tried to hard code it in the extension, but firefox disabled it afterwards, so I had to reinstall.
Can you hard code color white so
:selection
or is there a way for me to achieve that through settings ??EDIT Current Firefox version 94.0
The text was updated successfully, but these errors were encountered: