From eabfaca08ebb22c5a988fa33cc0e7656a277f633 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 14 Jan 2018 15:23:09 +0300 Subject: [PATCH] run webNavUsercssInstallerFF on the entire githubusercontent.com fixes #329 --- background/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/background.js b/background/background.js index f957df67..eb3c59cb 100644 --- a/background/background.js +++ b/background/background.js @@ -61,8 +61,8 @@ chrome.runtime.onMessage.addListener(onRuntimeMessage); // FF applies page CSP even to content scripts, https://bugzil.la/1267027 chrome.webNavigation.onCommitted.addListener(webNavUsercssInstallerFF, { url: [ - {urlPrefix: 'https://raw.githubusercontent.com/', urlSuffix: '.user.css'}, - {urlPrefix: 'https://raw.githubusercontent.com/', urlSuffix: '.user.styl'}, + {hostSuffix: '.githubusercontent.com', urlSuffix: '.user.css'}, + {hostSuffix: '.githubusercontent.com', urlSuffix: '.user.styl'}, ] }); }