.user.css -> .css to reveal more of the name

This commit is contained in:
tophf 2022-02-10 10:00:08 +03:00
parent 73fe21b908
commit 41e2d4e458
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
}
if (CHROME) {
chrome.webRequest.onBeforeRequest.addListener(openNamedStyle, {
urls: [URLS.ownOrigin + '*.user.css'],
urls: [URLS.ownOrigin + 'virtual/*.css'],
types: ['main_frame'],
}, ['blocking']);
}

View File

@ -150,7 +150,7 @@ window.StyleInjector = window.INJECTED === 1 ? window.StyleInjector : ({
if (exposeStyleName && name) {
el.dataset.name = name;
name = encodeURIComponent(name.replace(/[#%/@:']/g, toSafeChar));
code += `\n/*# sourceURL=${chrome.runtime.getURL('')}${name}.user.css#${id} */`;
code += `\n/*# sourceURL=${chrome.runtime.getURL('')}virtual/${name}.css#${id} */`;
}
el.type = 'text/css';
// SVG className is not a string, but an instance of SVGAnimatedString