fix(browser-extension): issue #663

This commit is contained in:
wanhose 2024-08-04 13:17:54 +02:00
parent 6421b0b70a
commit 0cb642417c

View File

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