From 308654720880d5f807f418416606d598ad5bfd6c Mon Sep 17 00:00:00 2001 From: Guus van der Meer Date: Sun, 23 Oct 2022 00:51:00 +0200 Subject: [PATCH] Fixed youtube on Firefox (#168) --- src/data/js/common5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/js/common5.js b/src/data/js/common5.js index 941bed3d..ec6c0bdc 100644 --- a/src/data/js/common5.js +++ b/src/data/js/common5.js @@ -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)]';