Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

YouTube Remove Adblock Thing 2.3 #125

Merged
merged 4 commits into from
Nov 9, 2023
Merged

YouTube Remove Adblock Thing 2.3 #125

merged 4 commits into from
Nov 9, 2023

Conversation

Madriix
Copy link
Contributor

@Madriix Madriix commented Nov 8, 2023

Tested on firefox only

List of improvements:

  • The addblocker::setInterval is replaced by a MutationObserver. It's better for performance to avoid something that runs in a loop all the time
  • Some new blocked ad elements
  • Displays a popup when the plugin is first started, to suggest that the user deactivate their ad blocker on the YouTube site so that the plugin works
  • Some improvements including fix: fix undefined variable targetId #120
  • As the plugin is not found on the Mozilla Firefox plugins site, so I took the liberty of publishing it here: https://addons.mozilla.org/firefox/addon/adskip-youtube/ (It's the same code, but it has a different name)

@vermaysha
Copy link

I have tested on Microsoft Edge browser and found no issues.
It should also work fine on chromium based browsers.

@TheRealJoelmatic
Copy link
Owner

Great Work, this there is some nice addons in there. :)

@TheRealJoelmatic TheRealJoelmatic merged commit 36c2fda into TheRealJoelmatic:main Nov 9, 2023
@justbendev
Copy link

Nice work , there is two small issues i would like to point:

First the popup doesn't display correctly , it does not take the full screen and honestly i think the design is a bit too Basic and need a little love 😅

Second issue is localStorage and iframes, if a Youtube player is embedded using an iframe the popup will trigger every time.

I will commit a patch when i have some time and of course if no ones else does it before me 😄

Have a great day and thanks for the contribution 👍

@Madriix
Copy link
Contributor Author

Madriix commented Nov 10, 2023

I have the impression that there is a bug in the MutationObserver because there is some flooding that slows down the browser as soon as we are on the homepage and scroll down to load new content. Here, it bugs, and it takes time to load.


As soon as I add a log here, sometimes it can load nearly 900 things in 1 second, and I feel like it lags. In addition to the initial 900, there are even more afterward, increasing by 150 or 200 times each time. I'm not sure how to make the Mutation Observer less triggered. Is that why the setInterval was used instead of the Mutation Observer?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants