InviTube/content.js
2024-08-21 09:52:16 +02:00

5 lines
No EOL
187 B
JavaScript

if (location.href.startsWith("https://www.youtube.com")) {
browser.runtime.sendMessage("showInvidiousPageAction");
} else {
browser.runtime.sendMessage("showYoutubePageAction");
}