Tab Scroll
-
@Joaoz1n Welcome to the forum!
TheEdit: The update was already made. Somehow got the old version by mistake.executeScript
function that this mod makes use of has changed. It is now in thescripting
API and requires a tab ID to be provided instead of defaulting to the active tab. There will need to be an update to the mod.There is still the command chain version if you want to trigger the scrolling with a keyboard shortcut, button, or quick commands: https://forum.vivaldi.net/post/509249
Also, since you are a new forum user, are you aware that JavaScript mods need to be re-added after every browser update?
-
@Joaoz1n I just loaded the mod, it still works. Maybe you need to update it, check out the original post of this topic.
-
@luetage I'm not tech savvy at all, so it's hard for me to understand what's going wrong. I'm pretty sure I'm using Vivaldi's latest build, this being 5.6.2867.58. As for the custom.js, I just copied the whole thing from your post and pasted it on TamperMonkey so I could download it. When the script stopped working, I tried to do that all over again. There's a warning on TamperMonkey stating that "chrome" is undefined, though I don't have the slightest idea of what that could mean.
-
@Joaoz1n You can’t install this script with Tampermonkey. While the tab scroll itself works on a webpage, all the rest of the code targets Vivaldi’s user interface, which is not reachable by extensions. Please read ☛ https://forum.vivaldi.net/post/10549 carefully and follow the steps.
In any case, as @nomadic mentioned a little while ago; should modding the application itself be too complicated you could always create a command chain, which is supported native by Vivaldi, no need to mess with the application files/batch scripts. In the newest versions of Vivaldi there is even the possibility to enable the custom buttons experiment from ☛
vivaldi://experiments/
. With this you could place a button anywhere in the UI to trigger tab scroll on the current page. The only thing this modification does is allowing you to trigger it by clicking on the tab, nothing more is being gained from it. -
I did follow the modding tutorial. I didn't really use TamperMonkey to run the script, but to download it as a .js file. I couldn't for the life of me find a better way to do it, I'd never toyed with javascript before. It did work for some 6 days, until it suddenly stopped about 2 days ago. No idea what could've been the catalyst.
-
@Joaoz1n You copy the code in the original post. You create a file with a text editor and paste the code in there. Then you save the file and name it (e.g.
custom.js
). And then you need to move it inside of the application. When you load it within Tampermonkey and then download it, there is a chance that Tampermonkey writes a bunch of garbage code needed for userscripts into the file and then it will never work. Don’t do it like that. I mean we can take a look at your downloaded file, could you paste the contents here? Then we’ll know whether it could potentially work. -
@luetage Haha, so you're telling me I could've just used notepad all along? Well, the more you learn. So, I did just that, but still it doesn't seem to work. The custom.js file is, I presume, exactly the same as yours, now that I created it through a text editor. The body element on the browser.html looks like this:
<<script src="custom.js"></script>/body> -
@Joaoz1n Yes, but where is the file? I can assure you the code works.
-
@luetage The custom.js file is in the vivaldi folder, alongside the browser.html file.
-
@Joaoz1n said in Tab Scroll:
<<script src="custom.js"></script>/body>
This isn't proper HTML formatting. Inside the body means between the initial
<body>
and the end</body>
.So you should have something like this for the body in
browser.html
:<body> <div id="app" /> <script src="vendor-bundle.js"></script> <script src="background-common-bundle.js"></script> <script src="bundle.js"></script> <script src="custom.js"></script> </body>
The default formatting has different indentation. You an leave the indentation as is, and put the
<script src="custom.js"></script>
between the<script src="bundle.js"></script>
and the</body>
. -
Since the last update this doens't seems to work anymore
-
@Herrifunix Take a look at the console to find out what doesn’t work.
-
I'm very new to this and don't know where to search, console doens't show any errors, i have no adblocks and turned off all extensions. Script doens't seem to show anywhere in the console either.
-
Stopped working for me as well. I don't see anything in the console either, but am similarly unfamiliar with how to use it.
-
@Herrifunix @bleatingherd You’re both correct, it doesn’t work. I don’t know the reason, it should be. It most likely happened when Vivaldi switched from browser to window.html. Unfortunately I don’t use the tab bar anymore, and therefore no mods connected with tabs. Nowadays I tab scroll with a command chain and corresponding keyboard shortcut ☛ https://forum.vivaldi.net/post/509249
-
Oh well, forget what I said, it still works. You have to load your mods through window.html not browser.html, please remember that.
-
I had missed the memo about mods moving to window.html. I updated my batch script and have this working again. Thank you.
-
Not sure what happened, but seems to be broken agina I do use it so much on my everyday work.
-
@MetaVerseNavigator Works for me. You need to find out what is going wrong in your case. Either it’s the same as for the users above (browser/window.html), or something else. Check devtools console for UI for errors/hints.
-
my mistake @luetage I was not aware that upgrading Vivaldi would reset my custom scripts
Any way to get around this custom script reset issue?