Skip to content

Commit

Permalink
fix(Invidious): add privacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ION606 committed Apr 28, 2024
1 parent 7bd5b2f commit a27b7f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions websites/I/Invidious/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,10 @@ presence.on("UpdateData", async () => {

case "watch":
if (!privacy) {
presenceData.smallImageKey = document.querySelector(
".vjs-playing"
)
presenceData.smallImageKey = document.querySelector(".vjs-playing")
? Assets.Play
: Assets.Pause;
presenceData.details = document
.querySelector("h1")
.textContent.trim();
presenceData.details = document.querySelector("h1").textContent.trim();
presenceData.state =
document.querySelector("#channel-name").textContent;
if (document.querySelector(".vjs-playing"))
Expand Down

0 comments on commit a27b7f9

Please sign in to comment.