-
-
Save PiDelport/513676916e8fc186a09edfc8965a410b to your computer and use it in GitHub Desktop.
This doesn't work in Firefox, as Firefox doesn't allow executing Javascript on pages with proper Content Security Policies, like Slack has. Unless one wants to set security.csp.enable = false
, which is obviously bad for security, there doesn't seem to be a working workaround.
Tampermonkey claims to have one (Tampermonkey/tampermonkey#952 (comment)), however I could get that to work (not even with disabled service workers and caching).
Violentmonkey has another workaround (https://violentmonkey.github.io/posts/inject-into-context/), however they explicitly state that this then results in the userscripts to run in another context than the Javascript on the page. I also tried that and can confirm that while the script gets executed, the changed user agent isn't visible to the page.
Also hosted at: