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;