From d737ee7da694945d8dafe583663683f4ebf82dca Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 25 Dec 2018 12:01:01 -0600 Subject: [PATCH] Firefox allow CSP UserCSS install from anywhere. See #618 --- background/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/background.js b/background/background.js index c01c063b..e151b341 100644 --- a/background/background.js +++ b/background/background.js @@ -79,8 +79,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.css'}, ] }); // FF misses some about:blank iframes so we inject our content script explicitly