Skip to content

Commit

Permalink
Fixed youtube on Firefox (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyGuus authored Oct 22, 2022
1 parent bceecce commit 3086547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/js/common5.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function getSelector(host) {

switch (host.full) {
case "youtube.com":
return 'ytd-consent-bump-v2-lightbox .buttons ytd-button-renderer:last-child, ytd-consent-bump-v2-lightbox .eom-buttons > div:first-child ytd-button-renderer:first-child, .consent-bump-v2-lightbox [data-style="STYLE_PRIMARY"] + [data-style="STYLE_PRIMARY"] button';
return 'ytd-consent-bump-v2-lightbox .buttons ytd-button-renderer:last-child, ytd-consent-bump-v2-lightbox .eom-buttons > div:first-child ytd-button-renderer:first-child button, ytd-consent-bump-v2-lightbox .eom-buttons > div:first-child ytd-button-renderer:first-child a, .consent-bump-v2-lightbox [data-style="STYLE_PRIMARY"] + [data-style="STYLE_PRIMARY"] button';
case "twitter.com":
return '//div[@id="layers"]//div[@role="button"][.//span[contains(text(), "cookie") or contains(text(), "Cookie")]]/following-sibling::div[@role="button"][not(@aria-label)][not(@data-testid)]';

Expand Down

0 comments on commit 3086547

Please sign in to comment.