Support for Android Firefox and m.youtube.com

should fix #68 and #143

List of changes:
* Suppress mobile user agents in background script
* Also look for the mobile equivalents of relevant HTML Elements
* More consistently use get[Dis]LikeButton() instead of getButtons().children
* Add mobile-specific css tweaks
This commit is contained in:
AgentConDier committed 2021-12-08 20:47:56 +01:00
1 parent 85dd78f415
commit 8f934251a1
3 files changed
+59 -25

No files matched your search

+16
View File
@@ -1,3 +1,9 @@
html {
/* fallback values for mobile */
--yt-spec-icon-disabled: #909090;
--yt-spec-text-primary: #030303;
}
#return-youtube-dislike-bar-container {
background: var(--yt-spec-icon-disabled);
border-radius: 2px;
@@ -16,6 +22,16 @@
top: 9px;
}
ytm-slim-video-action-bar-renderer > .ryd-tooltip {
padding-left: 12px;
top: 0px;
}
/* tp-yt-paper-tooltip not supported on mobile */
ytm-slim-video-action-bar-renderer tp-yt-paper-tooltip {
display: none;
}
.ryd-tooltip-bar-container {
width: 100%;
height: 2px;