From 744bf01147360c3ae3c8447c74a4241d1fe2069b Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sun, 3 Mar 2019 20:42:03 -0600 Subject: [PATCH] Firefox allow CSP UserCSS install from anywhere. See #618 (#623) * Firefox allow CSP UserCSS install from anywhere. See #618 * Fix suffix extension --- background/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/background.js b/background/background.js index b74067f3..70dc6ba4 100644 --- a/background/background.js +++ b/background/background.js @@ -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