Tracking browser.js updates
-
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?
-
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. -
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. -
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.
-
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?