From dbebdabda3eb1f3edc52328c2c069c7c6b3fc9ab Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 4 Aug 2018 19:55:03 +0200 Subject: content.js: Include subdomain Include the subdomain when matching filenames. This is less general, but allows us to match more precisely. I needed to modify CSS on a `subdomain.github.io` blog, and of course we don't want to modify _all_ `github.io` styles. --- content.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/content.js b/content.js index 0dbcb50..e970e79 100644 --- a/content.js +++ b/content.js @@ -21,9 +21,6 @@ if (chrome) { browser = chrome; } -var domain = location.hostname - .split('.') - .slice(-2) - .join('.'); +var domain = location.hostname; browser.runtime.sendMessage({ domain: domain }); -- cgit v1.2.3