Fix windows navigator
The extension is currently implemented by injecting code into various methods of various classes, including _init()
.
After porting to ES6, those classes:
- no longer have an
_init()
method, but a standard JS constructor - constructors aren't regular methods and cannot be easily swapped out (at all?)
Solve this by rather than injecting into the existing classes, subclass them and replace the original ones with the subclasses.
Fixes #143 (closed)