From 6f21cff7ae6ca20ec3dda25044b0ac2ad8fd077a Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Mon, 3 Aug 2020 20:52:47 -0400 Subject: [PATCH] v1.6.0/crunchyroll fixes --- app/src/VideoListener.js | 2 +- app/src/index.css | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/src/VideoListener.js b/app/src/VideoListener.js index 2c489b3..449ef99 100644 --- a/app/src/VideoListener.js +++ b/app/src/VideoListener.js @@ -266,7 +266,7 @@ export default class VideoListener { } return googleplayshow === '' ? null : googleplayshow; case PLAYER_SOURCE.CRUNCHYROLL: - const crunchyrollTitle = document.querySelector('#template_body > div:nth-child(4) > div.showmedia-trail.cf > div > h1'); + const crunchyrollTitle = document.querySelector('#showmedia_about_media'); const crunchyrollshow = crunchyrollTitle ? crunchyrollTitle.innerText : ''; return crunchyrollshow === '' ? null : crunchyrollshow; default: diff --git a/app/src/index.css b/app/src/index.css index 5ddbf58..a69f483 100644 --- a/app/src/index.css +++ b/app/src/index.css @@ -191,6 +191,12 @@ body.googleplay.visible height: 100%; } /* CRUNCHYROLL STYLING */ +body.crunchyroll.visible { + overflow: hidden !important; +} +body.crunchyroll.visible header { + z-index: 0 !important; +} body.crunchyroll.visible #showmedia_video { position: fixed; z-index: 99999; @@ -608,6 +614,11 @@ body.amazon-prime .notification-switch .MuiSwitch-thumb { .alerts-container { margin: 5px 0; + position: sticky; + top: 0; + padding: 5px 0; + z-index: 99999 !important; + background: #1b1b1b; } .alert-card {