Webpages scrollbars with var(--color) [Mod/extension hybrid]
-
- Go to vivaldi://extensions/
- Enable developer mode
- Load unpacked extension
- Point to vscroll folder
- You should see it as extension now
- Restart browser
If scripts are working correctly, and the extension was loaded you should see this
-
OH MY GOD, IT WORKS!
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
@fne I hope will see a native function to do that in future
-
Yes... but for now, this is like magic to me!!!!!!!!!!!!!!!!!!!!!!!!
I ALWAYS hated Windows 10 pale invisible thin scrollbars!! WOWOWOWOWOOWOW... this is so amazing.
I'm sooo greatful for your help!!!
THANK YOU VERY MUCH!!!
-
Not a fan of the Blink scrollbars, rather use the default scrollbars with colors. Would be cool if Vivaldi could replace Chrome's default scrollbar with Vivaldi's own scrollbar.
-
@artex Is what this do: it's a custom scrollbar extension which use vivaldi colors plus two 2 js scripts to inject vivaldi colors to webpages.
Sadly, not being very expert in these things (especially js and debugging) sometimes could fail.
It's quite hacky way to do that, but it works (on RC2/stable at least). Made the title more clear. -
@hadden89 It uses the chrome's overlay scrollbar which i really dislike. I tried it and me not knowing much about it didn't succeed in making it work. I'll just wait if someone tries to make a version that isnt so hard to add XD.
-
@artex said in *TEST* Scrollbar extension/hooks with vivaldi var(--color):
@hadden89 It uses the chrome's overlay scrollbar which i really dislike. I tried it and me not knowing much about it didn't succeed in making it work. I'll just wait if someone tries to make a version that isnt so hard to add XD.
I will make an easy step by step guide for you because I need it myself as well. Vivaldi "deletes" all these changes on each update so it's good to have a handy guide to "re-install" this fast.
I'll post it here when it's done.
Edit: I hate overlay scrollbars too but this acts almost like the "normal" scrollbars so it's very good.
-
Here you go. I made a step by step guide. If you follow it, you will not lose the scrollbar files on Vivaldi updates. All you need to do is to just re-edit "browser.html" file and probably re-enable the extension from the menu.
You can edit the "scroll_custom.css" to make it look the way you like, the colors, sizes etc. Each change needs a Vivaldi restart though.
Edit: The css/js files, I couldn't upload here but I replicated this post in TechTalk.cc: Custom scrollbars inside Web sites for Vivaldi where "scroll.zip" source code files is attached in there.
Edit2: A small update: It seems that you don't even need to alter "browser.html". As long as you install the extension, it works fine (at least for me).
-
Help! It marked my post as spam when I tried to post the source code inside the files for some reason! lol
Edit: Never mind, I will post it in another place as well to be able to host the files longer term. Will update shortly!
-
@fne Hmm, have you used markdown syntax for the code? Three backticks
```
before and after code. -
@luetage said in *TEST* Scrollbar extension/hooks with vivaldi var(--color):
@fne Hmm, have you used markdown syntax for the code? Three backticks
```
before and after code.No, my bad. I wasn't sure how to post it. Thank you. I'll just replicate the source code in second place just in case.
-
I'm not sure if this is even the issue, but it's worth a try. By the way, you can look up any markdown by using the
compose?
link in the reply input field.
-
@fne looks cool, i'll give it a try thanks!
-
@artex said in *TEST* Scrollbar extension/hooks with vivaldi var(--color):
@fne looks cool, i'll give it a try thanks!
A small update: It seems that you don't even need to alter "browser.html". As long as you install the extension, it works fine (at least for me).
-
-
I finally got around to testing this. The manifest.json has wrong quotes and therefore the unpacked extension fails to install, if not manually fixed. Works otherwise.
-
@luetage Strange, I left it in a "working state".
I'll check, maybe the link is old. -
@hadden89 Could be I botched it up myself – I copy/pasted a "matches" line from your Vivaldi blog and this seems to introduce wrong quotes. Probably should have copied in plain text.
-
@luetage Yeah, I've to update even that to make it more clear and simpler to read. I could have forgot something there.