From 7a1045b45a087c5d52383ffe317c49138409ce95 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 30 Jul 2022 20:48:43 +0300 Subject: [PATCH] keep valid url path chars intact --- content/style-injector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/style-injector.js b/content/style-injector.js index d870ae63..b2a48b4e 100644 --- a/content/style-injector.js +++ b/content/style-injector.js @@ -158,7 +158,7 @@ window.StyleInjector = window.INJECTED === 1 ? window.StyleInjector : ({ function setTextAndName(el, {id, code = '', name}) { if (exposeStyleName && name) { el.dataset.name = name; - name = encodeURIComponent(name.replace(/[?#%/@:']/g, toSafeChar)); + name = encodeURIComponent(name.replace(/[?#/']/g, toSafeChar)); code += `\n/*# sourceURL=${chrome.runtime.getURL(name)}.user.css#${id} */`; } el.textContent = code;