Firefox allow CSP UserCSS install from anywhere. See #618 (#623)

* Firefox allow CSP UserCSS install from anywhere. See #618

* Fix suffix extension
This commit is contained in:
Rob Garrison 2019-03-03 20:42:03 -06:00 committed by GitHub
parent 55189f1fdd
commit 744bf01147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,8 +86,8 @@ if (FIREFOX) {
// FF applies page CSP even to content scripts, https://bugzil.la/1267027
navigatorUtil.onCommitted(webNavUsercssInstallerFF, {
url: [
{hostSuffix: '.githubusercontent.com', urlSuffix: '.user.css'},
{hostSuffix: '.githubusercontent.com', urlSuffix: '.user.styl'},
{pathSuffix: '.user.css'},
{pathSuffix: '.user.styl'},
]
});
// FF misses some about:blank iframes so we inject our content script explicitly