Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with random position mode #46

Open
julien-deramond opened this issue Nov 10, 2022 · 0 comments
Open

Error with random position mode #46

julien-deramond opened this issue Nov 10, 2022 · 0 comments

Comments

@julien-deramond
Copy link
Contributor

Whatever the data set as input in the extension, when "Random position" is checked:

www.youtube.com/:1 Error handling response: TypeError: Cannot set properties of null (setting 'src')
    at chrome-extension://eficfcfnfcemmmnmniolgbiggengpckp/content.js:81:23

IMO it is linked to #45 and the selectors which have changed in YT.

I don't know enough the extension but the following change could help for a fix:

-    // Target only ytd-rich-item-renderer element and not ytd-rich-item-renderer with id content for the main page
-    let cards = activeScreen.querySelectorAll('.ytd-rich-grid-media:not(#content):not(ytd-display-ad-renderer)')
+    let cards = activeScreen.querySelectorAll('.ytd-rich-grid-media#dismissible')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant