fix(browser-extension): issue #658

This commit is contained in:
wanhose 2024-08-04 13:57:28 +02:00
parent 293c25578e
commit 41a64e6fcf

View File

@ -273,7 +273,11 @@ function match(element, skipMatch) {
* @returns {void}
*/
function fix() {
const backdrops = document.querySelectorAll('.modal-backdrop, .overlay');
const backdrops = document.querySelectorAll([
'.modal-backdrop',
'.offcanvas-backdrop',
'.overlay',
]);
const domains = (skips?.domains ?? []).map((x) => (x.split('.').length < 3 ? `*${x}` : x));
for (const backdrop of backdrops) {