4 ms·
As yoklov said, I had to have a small script[1] run a quick check on every page you visit to check if the URL is a Pinpointer URL. As far as I can tell there's
by Rumperuu 8y ago
As yoklov said, I had to have a small script[1] run a quick check on every page you visit to check if the URL is a Pinpointer URL. As far as I can tell there's no way around this (and I'd say breaking backwards compatibility with HTTP is a bit drastic for a little browser extension like this).
[1] https://github.com/Rumperuu/Pinpointer/blob/master/content_scripts/checkPage.js https://github.com/Rumperuu/Pinpointer/blob/master/content_s...
- ChrisSD 8y agoCould you not use webNavigation[0] to check the url and permissions API to ask for permission[1] if necessary? EDIT: Or tabs.onUpdated if webNavigation doesn't fire for hash changes[2] [0] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webNavigation https://developer.mozilla.org/en-US/Add-ons/WebExtensions/AP... [1] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/permissions https://developer.mozilla.org/en-US/Add-ons/WebExtensions/AP... [2] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/onUpdated https://developer.mozilla.org/en-US/Add-ons/WebExtensions/AP...