Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Find a way to inject scripts faster than we do it at the moment #1029
We need to find a way to improve the current situation and reliably inject our scripts BEFORE the in-page scripts are executed.
There's no 100% reliable way (relevant feature request: https://bugs.chromium.org/p/chromium/issues/detail?id=471801), but we can try some hacks in order to achieve a better result than we have at the moment.
First of all, try figure what Tampermonkey does (as I recall they're using
Here's what I suggest:
This feature is not reliable, but for some sites, it should inject scripts faster than inline scripts of the site itself.
The real example, when it is required: