(selectors: string[])
| 152 | }; |
| 153 | |
| 154 | const appendInversionCancellation = (selectors: string[]) => { |
| 155 | if (theme!.mode === 0 || selectors.length === 0) { |
| 156 | return; |
| 157 | } |
| 158 | rules.push([ |
| 159 | `${selectors.join(', ')} {`, |
| 160 | ` filter: none !important;`, |
| 161 | ` color: var(--darkreader-neutral-text) !important;`, |
| 162 | '}', |
| 163 | `${selectors.map((s) => `${s} > *`).join(', ')} {`, |
| 164 | ` filter: none !important;`, |
| 165 | '}', |
| 166 | ].join('\n')); |
| 167 | }; |
| 168 | |
| 169 | if ((fixes && Array.isArray(fixes.invert) && fixes.invert.length > 0) || filterSelectors.invert.size > 0) { |
| 170 | const extraInversionSelectors = [...filterSelectors.invert] |
no outgoing calls
no test coverage detected