[...document.querySelectorAll('.contents img, .contents svg, .contents iframe')] .map((el, i) => ({ i, tag: el.tagName, src: el.getAttribute('src'), className: el.className?.toString(), colorScheme: getComputedStyle(el).colorScheme, filter: getComputedStyle(el).filter, darkAncestor: !!el.closest('.theme--dark'), darkAncestorClass: el.closest('.theme--dark')?.className || null }))