• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
    Some downtime and service disruptions may be experienced.
    Thanks in advance for your patience.

    1. Home
    2. Desktop
    3. Desktop Snapshots
    4. Periodic tab reload – Vivaldi Browser snapshot 2056.19

    Periodic tab reload – Vivaldi Browser snapshot 2056.19

    Desktop Snapshots
    45
    133
    10.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kichrot
      last edited by kichrot

      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?

      1 Reply Last reply Reply Quote 0
      • Ruarí
        R
        Ruarí Supporters Vivaldi Team @AltCode
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • K
          kichrot
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • mizouniihichem
            M
            mizouniihichem Translator @Ruarí
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • Cqoicebordel
              C
              Cqoicebordel Ambassador
              last edited by

              @gwen-dragon: I think it works in QC 🙂

              QuHno
              Q
              1 Reply Last reply
              Reply Quote 0
              • K
                kichrot
                last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • Nordlicht
                  N
                  Nordlicht
                  last edited by

                  First asking for M3 😉

                  1 Reply Last reply Reply Quote 0
                  • barbudo2005
                    B
                    barbudo2005
                    last edited by

                    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)

                    ?
                    1 Reply Last reply
                    Reply Quote 2
                    • K
                      kichrot
                      last edited by kichrot

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • olli
                        O
                        olli Vivaldi Team Patron @Ruarí
                        last edited by

                        @ruarí: Must be a bug?

                        1 Reply Last reply Reply Quote 1
                        • K
                          kichrot
                          last edited by

                          @Gwen-Dragon

                          What to do?

                          1 Reply Last reply Reply Quote 0
                          • Vladimyr
                            V
                            Vladimyr
                            last edited by

                            It would be much more useful to implement the periodic reload of the page in the side panel

                            1 Reply Last reply Reply Quote 0
                            • Steffie
                              S
                              Steffie
                              last edited by

                              I'm feeling soooooooo sad & forgotten, bwaaaaaaaaaaaah...

                              2020-09-28_23-28.png

                              😭

                              ♀ 🇦🇺

                              ?
                              Ruarí
                              R
                              2 Replies Last reply
                              Reply Quote 1
                              • ?
                                A Former User @barbudo2005
                                last edited by

                                @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.

                                barbudo2005
                                B
                                1 Reply Last reply
                                Reply Quote 1
                                • ?
                                  A Former User @Steffie
                                  last edited by A Former User

                                  @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

                                  Steffie
                                  S
                                  1 Reply Last reply
                                  Reply Quote 1
                                  • Steffie
                                    S
                                    Steffie @A Former User
                                    last edited by Steffie

                                    @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... 😱

                                    ♀ 🇦🇺

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      TheDragonReborn
                                      last edited by

                                      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!

                                      Ruarí
                                      R
                                      1 Reply Last reply
                                      Reply Quote 0
                                      • Ruarí
                                        R
                                        Ruarí Supporters Vivaldi Team @Steffie
                                        last edited by

                                        @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)

                                        Steffie
                                        S
                                        1 Reply Last reply
                                        Reply Quote 2
                                        • K
                                          kichrot
                                          last edited by

                                          @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

                                          Open topic: https://forum.vivaldi.net/topic/51181/in-snapshot-2056-19-js-scripts-for-extending-the-vivaldi-functionality-stopped-working

                                          1 Reply Last reply Reply Quote 0
                                          • Ruarí
                                            R
                                            Ruarí Supporters Vivaldi Team @TheDragonReborn
                                            last edited by

                                            @thedragonreborn: Read the know issues

                                            1 Reply Last reply Reply Quote 2
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 3 / 7
                                            • First post
                                              Last post

                                            Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                                            Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status