ParticleCore / Iridium

Iridium is an extension built to improve your YouTube experience
Other
1.31k stars 139 forks source link

Passive autoplay control is allowing ads through #943

Closed ParticleCore closed 4 months ago

ParticleCore commented 4 months ago

The change implemented in #912 is working, but it is also allowing ads through when they shouldn't.

It is possible one or more methods need to be revised that might be at play when the stream signature expires, causing new data to be loaded.

Unfortunately, the process is slow since it needs to wait for the signature to expire each time, and that might take around 6h.

If I cannot find out why this is happening, I might have to revert the change until I figure it out.

ParticleCore commented 4 months ago

There seems to be an internal update mechanism that isn't very obvious, nor there appears to exist an API for it. However, intercepting the network request does seem to work when this situation occurs.

This also revealed the page data also gets updated, and it can cause ads to show on the sidebar too.

Intercepting the network request will be the best approach at resolving this issue, at least until a better way can be found.