Periodic tab reload – Vivaldi Browser snapshot 2056.19
-
@npro sorry I'm back... I meant 'til next desktop snapshot, anyway bye!
-
They stopped working in this snapshot custom JS scripts.
JS scripts work if you replace JS files in the application\3.4.2056.19\resources folder for files from the previous one a snapshot.
The developers decided to disable this feature use JS user scripts? -
@altcode: I'd need to check but I can say they always run betas. That said, there is nothing in this code area that would make it platform specific and thus no reason to suspect that would matter.
-
@Gwen-Dragon
I'm not writing about an official opportunity.
I am writing about the actual possibility of using JS user scripts, which was before this snapshot.
If this opportunity is finally closed, VIVALDI will lose half of its appeal to me. -
@ruarí: it does take a pause but the 'pause icon' in the staue bar never change, it doesn't show whether i'm in pause mode or not, it's stuck somehow
-
@gwen-dragon: I think it works in QC
-
@Gwen-Dragon said in Periodic tab reload – Vivaldi Browser snapshot 2056.19:
I thought you could drag your myfile.user.js onto extension manager page and install it. That fails?
I tried it, it doesn't work.
-
First asking for M3
-
The new feature of periodic tab reload is a good one, but the userJS that @potmeklecbohdan write is better.
https://forum.vivaldi.net/post/396858
(function(){ let observers = []; function callback(mutationList, observer) { for (let mut of mutationList) { if (mut.type === "attributes" && mut.attributeName === "class") { if (mut.oldValue.split(" ").includes("hide") && !mut.target.className.split(" ").includes("hide")) { ajaxify.refresh(); } } } } function watch() { for (let obs of observers) { obs.disconnect(); let idx = observers.indexOf(obs); if (idx > -1) observers.splice(idx, 1); } let node = document.querySelector("#new-topics-alert"); if (!node) return; let cfg = { attributes: true, attributeFilter: [ "class" ], attributeOldValue: true }; let obs = new MutationObserver(callback); observers.push(obs); obs.observe(node, cfg); } window.addEventListener("load", () => { watch(); // Have to use jQuery coz otherwise it doesn't work if (window.$) $(window).on('action:ajaxify.end', () => watch()); }); })();
Take for example the Vivaldi Forum home https://forum.vivaldi.net , when there is a new topic or post the page make an alert "#new-topics-alert". The JS script recognize it and reload the page.
For example in the new feature you set the time to reload to 30 seconds, and even though there is only a new topic or post after 5 minutes the page will reload 10 times. With this JS script it will reload only once.
Please add this complementary feature, so the pages that send a #new-topics-alert will reload only when there is a new one (not considering the time set in this case)
-
@Gwen-Dragon said in Periodic tab reload – Vivaldi Browser snapshot 2056.19:
@kichrot UserJS files for web pages should have a special head and the file ending
.user.js
Tried.
I have JS scripts not for web pages, but for the VIVALDI interface. When I load them in the way You suggested, the scripts don't work.
Prior to this snapshot, my scripts loaded and worked fine via browser.html. -
@ruarí: Must be a bug?
-
@Gwen-Dragon
What to do?
-
It would be much more useful to implement the periodic reload of the page in the side panel
-
I'm feeling soooooooo sad & forgotten, bwaaaaaaaaaaaah...
-
@barbudo2005 said in Periodic tab reload – Vivaldi Browser snapshot 2056.19:
Please add this complementary feature, so the pages that send a #new-topics-alert will reload only when there is a new one
I fear this only works for NodeBB fora, or maybe even only for this forum.
-
@Steffie I thought I’m the only one doing this… (though I find it manually)
I’m wondering if this is still true (coz it’d mean it’ll take more time than usually to get into
herecura
)[Linux][Regression] The repository is not currently up to date with this build: it will be added later
-
@potmeklecbohdan said in Periodic tab reload – Vivaldi Browser snapshot 2056.19:
I find it manually
Ooooh! Pls tell. 🥺
Aha, saw your edit -- yes, i imagine you're correct. Sigh. Oh well, back to windoze for me then...
-
This snapshot and the previous one are broken for me. I can no longer right click on most things. it just doesn't appear. The "show closed tab" button also doesn't open even when there are closed tabs to open.
Please help!
-
@steffie: I listed this in the known issues from the start. We have some internal server changes at the moment, that mean I cannot (easily) sign an updated version of the repository right now. This in turn that means that unofficial repos like that one will not have been notified of new builds, since they check the official deb repo for updates.
If you want the build and cannot wait, remove the current Arch package and install via the install script linked above. You will however need to specify the version via a command line option (use
-h
for help with how the script works) -
@Gwen-Dragon said in Periodic tab reload – Vivaldi Browser snapshot 2056.19:
@kichrot Please open a new thread for this, in https://forum.vivaldi.net/category/52/modifications