• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Tracking browser.js updates

    Opera add-ons
    3
    7
    2449
    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.
    • nekomajin
      nekomajin last edited by

      I am working on an extension that notifies the user when the browser updates itself. I can do it with the built-in API-s, but I'd like to track the browser.js file too. Is there any way to check whether that file was updated?

      Reply Quote 0
        1 Reply Last reply
      • christoph142
        christoph142 last edited by

        One thing you can do is open this site, parse it via injected JS and send it back to your event page.
        Note however, that browserjs updates are triggered 60s after Opera starts up. So checking for browser version change and browserjs version change at the same time might not be perfect.

        Reply Quote 0
          1 Reply Last reply
        • nekomajin
          nekomajin last edited by

          The browser update check works automatically via the runtime API. It makes the extension pretty lightweight, so parsing the linked site would not be the most welcomed solution. I thought about parsing the file from the profile folder, but I don't know how to access it.
          It would be a nice power-user feature, but it's not that important.

          Reply Quote 0
            1 Reply Last reply
          • christoph142
            christoph142 last edited by

            Parsing the mentioned site isn't really any more complicated/resource-demanding than parsing the file. But it's up to you.

            Reply Quote 0
              1 Reply Last reply
            • nekomajin
              nekomajin last edited by

              OK, I will try it. Thanks!

              Reply Quote 0
                1 Reply Last reply
              • ruario
                ruario last edited by

                We have a public repository on GitHub for browserJS

                https://github.com/operasoftware/browserjs

                Reply Quote 0
                  1 Reply Last reply
                • nekomajin
                  nekomajin last edited by

                  I know that. But how can I track the update with JS? Does GitHub offer some kind of solution you know about?

                  Reply Quote 0
                    1 Reply Last reply
                  • First post
                    Last post

                  Computer browsers

                  • Opera for Windows
                  • Opera for Mac
                  • Opera for Linux
                  • Opera beta version
                  • Opera USB

                  Mobile browsers

                  • Opera for Android
                  • Opera Mini
                  • Opera Touch
                  • Opera for basic phones

                  • Add-ons
                  • Opera account
                  • Wallpapers
                  • Opera Ads

                  • Help & support
                  • Opera blogs
                  • Opera forums
                  • Dev.Opera

                  • Security
                  • Privacy
                  • Cookies Policy
                  • EULA
                  • Terms of Service

                  • About Opera
                  • Press info
                  • Jobs
                  • Investors
                  • Become a partner
                  • Contact us

                  Follow Opera

                  • Opera - Facebook
                  • Opera - Twitter
                  • Opera - YouTube
                  • Opera - LinkedIn
                  • Opera - Instagram

                  © Opera Software 1995-