duckduckgo / tracker-surrogates

💉 Surrogates are small scripts that our apps and extensions serve in place of trackers that cause site breakage when blocked.
Other
20 stars 11 forks source link

Also check known video elements outside of the DOM #9

Closed kzar closed 1 year ago

kzar commented 1 year ago

The YouTube Click to Load surrogate script needs to be able to connect an element ID to an existing YouTube video element. That needs to work, even when the original element is no longer in the DOM. Let's check the existing video maps too therefore.

ladamski commented 1 year ago

@kzar LGTM from a read-through, but I'm wondering if there's a good way to test this?

kzar commented 1 year ago

@kzar LGTM from a read-through, but I'm wondering if there's a good way to test this?

No, you can't really test this for now unfortunately, well not easily anyway. I have tested it though.