Tab Scroll
-
@MetaVerseNavigator You can use a script to patch Vivaldi. You store your JS mods in a folder and the script applies them to Vivaldi.
-
@oudstand Nice thank you.
True this is the price we pay for all the possibilities Vivaldi Give Us -
This post is deleted! -
Thank you for the mod. Actually, I would change
script
to this for smooth scrolling:const script = () => { let offset = window.scrollY; if (offset > 0) { window.sessionStorage.setItem('offset', offset); window.scrollTo({top: 0, behavior: 'smooth'}); } else { window.scrollTo({top: window.sessionStorage.getItem('offset') || 0, behavior: 'smooth'}); } };
-
@aminought Matter of taste. In this case itโs not set, on some pages it will be smooth, otherwise instant. But maybe it should be set to either one or the other specifically, to keep it consistent. Iโll probably make a change to include both.
-
Thank you!
Smooth version is a bit easier to understand that feature is working like intended. Because snap up and down confuses for the first time, but two options is a way better than one -
@luetage said in Tab Scroll:
@kichrot Well, theoretically yes. The issue is itโs never clear what you hit when you click the close button. It could be the path, the svg or the button itself and all these possibilities have to be covered. Personally I hit
W
to close a tab or use a mouse gesture. Iโll take a look at it eventually.So there is no event to catch when mousedown clicks on "X" to close tab? Or it's too complicated? Something like mousehover X tab button?
Because I have the same issue, when click on "X" on the current tab the page scrolling up or down and eventually tab closes. Distracting especially when using smooth version
-
@CfYz And you want me to program a version which respects the tab close button now.
-
@luetage said in Tab Scroll:
@CfYz And you want me to program a version which respects the tab close button now.
Would be nice, yes. But no problem at all if you can't for whatever reason
-
Ok, I updated the mod. I noticed all my tab mods stop working on 6.10, so I made the needed change to get them working again. Additionally the tab close button will be ignored now and scrolling can be set to
instant
orsmooth
. I tried both again and the default will beinstant
, becausesmooth
is incredibly slow and gets old fast. I believe speed is important.I donโt know when exactly the mod broke, but I assume 6.9 still works with the old code. So if youโre not on 6.10 or higher, you will need to change following line
tabId: Number(tab.parentNode.parentNode.id.replace(/\D/g, "")),
to
tabId: Number(tab.parentNode.id.replace(/\D/g, "")),
The reason is Vivaldi has introduced an additional parent element to the header element. Anyway, with these changes everyone should be happy now.
-
This post is deleted! -
This post is deleted! -
I love this mod! I use this everyday and should be baked in by default into Vivaldi as an option. : ) Very useful. Thank you so much for this script!!
Patrick
-
@luetage For a long time I used this mod every day and I love it. However, after updating to Vivaldi 7.0 it no longer works. What needs to be changed?
-
@Dancer18 Are you using the version from September (2024.9.1)? This still works in my case, just tried it.
-
@luetage No, I didn't update it. Now, with the update, it works again.
Thank you. Solved. -
This post is deleted!