Improved dark mode colors remover

Improved data-x-src:hover font-size
This commit is contained in:
djmaze 2021-03-05 11:44:13 +01:00
parent b6d1df2f82
commit 43e107b0cb
3 changed files with 5 additions and 6 deletions

View file

@ -57,11 +57,9 @@ const
do { do {
l = html.length; l = html.length;
html = html html = html
.replace(/(<[^>]+);?background(-color)?\s*:[^;"']+/gi, '$1') .replace(/(<[^>]+)[;"']\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1')
.replace(/(<[^>]+[^-]);?color\s*:[^;"']+/gi, '$1') .replace(/(<[^>]+)[;"']\s*color\s*:[^;"']+/gi, '$1')
.replace(/(<[^>]+[^-])\sbgcolor="[^"]+"/gi, '$1') .replace(/(<[^>]+)\s(bg)?color=("[^"]+"|'[^']+')/gi, '$1');
.replace(/(<[^>]+[^-])\scolor="[^"]+"/gi, '$1');
//.replace(/<\/?font[^>]+>/gmi, '')
} while (l != html.length) } while (l != html.length)
return html; return html;
}; };

View file

@ -403,6 +403,7 @@
img[data-x-src]:not([src]):hover::after { img[data-x-src]:not([src]):hover::after {
content: attr(data-x-src); content: attr(data-x-src);
font-family: var(--fontSans); font-family: var(--fontSans);
font-size: 11px;
height: auto; height: auto;
transform: translate(-25%,0); transform: translate(-25%,0);
width: auto; width: auto;

View file

@ -8,7 +8,7 @@
data-bind="value: value, attr: {placeholder: placeholder}" /> data-bind="value: value, attr: {placeholder: placeholder}" />
<!-- /ko --> <!-- /ko -->
<!-- ko if: 1 === Type --> <!-- ko if: 1 === Type -->
<input type="number" step="1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" <input type="number" step="1"
data-bind="value: value, attr: {placeholder: placeholder}" /> data-bind="value: value, attr: {placeholder: placeholder}" />
<!-- /ko --> <!-- /ko -->
<!-- ko if: 3 === Type --> <!-- ko if: 3 === Type -->