diff --git a/chrome beta/scripts/emerald.js b/chrome beta/scripts/emerald.js index 3618f3a..4dd64ae 100644 --- a/chrome beta/scripts/emerald.js +++ b/chrome beta/scripts/emerald.js @@ -5,34 +5,150 @@ let glbVideoId = ""; let glbVideoTitle = ""; let glbAutoplayEnabled = "unset"; class EmeraldLanguageModel { - autoplay; - subscribe; - subscribed; - videos; - unsubscribe; - upNext; + about; + addToBtn; + addToPlaylist; + analytics; + autoplay; + byline; + category; + createPlaylist; + creatorStudio; + dislikes; + enterPlaylistTitle; + license; + like; + likes; + moreBtn; + noDescription; + onDate; + privatePlaylist; + publicPlaylist; + publishedOn; + publishedOnOld; + saveBtn; + shareBtn; + showLess; + showMore; + standardLicense; + subscribe; + subscribed; + tags; + unlistedPlaylist; + unsubscribe; + upNext; + uploadedBy; + videoManager; + videos; constructor(lang) { if (lang == "pl-PL") { + this.about = "Informacje"; + this.addToBtn = "Dodaj do"; + this.addToPlaylist = "Dodaj do playlisty"; + this.analytics = "Analityka"; this.autoplay = "Autoodtwarzanie"; + this.byline = "autor: "; + this.category = "Kategoria"; + this.createPlaylist = "Utwórz"; + this.creatorStudio = "Studio twórców"; + this.dislikes = " głosów na nie"; + this.enterPlaylistTitle = "Podaj nazwę playlisty..."; + this.license = "Licencja"; + this.like = "Fajne"; + this.likes = " głosów na tak,"; + this.moreBtn = "Więcej"; + this.noDescription = "Opis niedostępny."; + this.onDate = "dnia "; + this.privatePlaylist = "Prywatna"; + this.publicPlaylist = "Publiczna"; + this.publishedOn = "Opublikowany "; + this.publishedOnOld = "Opublikowano "; + this.saveBtn = "Zapisz"; + this.shareBtn = "Udostępnij"; + this.showLess = "Pokaż mniej"; + this.showMore = "Pokaż więcej"; + this.standardLicense = "Standardowa licencja YouTube"; this.subscribe = "Subskrybuj"; this.subscribed = "Subskrybujesz"; - this.videos = "Filmów"; + this.tags = "Tagi"; + this.unlistedPlaylist = "Niepubliczna"; this.unsubscribe = "Rezygnuję z subskrypcji"; this.upNext = "Następny"; + this.uploadedBy = "Przesłane przez "; + this.videoManager = "Menedżer filmów"; + this.videos = "Filmy"; } else if (lang == "en") { + this.about = "About"; + this.addToBtn = "Add to"; + this.addToPlaylist = "Add to playlist"; + this.analytics = "Analytics"; this.autoplay = "Autoplay"; + this.byline = "by "; + this.createPlaylist = "Create"; + this.creatorStudio = "Creator studio"; + this.dislikes = " dislikes"; + this.enterPlaylistTitle = "Enter playlist title..."; + this.license = "License"; + this.like = "Like"; + this.moreBtn = "More"; + this.noDescription = "No description available."; + this.onDate = "on "; + this.privatePlaylist = "Private"; + this.publicPlaylist = "Public"; + this.publishedOn = "Published on "; + this.publishedOnOld = "Published on "; + this.saveBtn = "Save"; + this.shareBtn = "Share"; + this.showLess = "Show less"; + this.showMore = "Show more"; + this.standardLicense = "Standard YouTube License"; this.subscribe = "Subscribe"; this.subscribed = "Subscribed"; - this.videos = "Videos"; + this.tags = "Tags"; + this.unlistedPlaylist = "Unlisted"; this.unsubscribe = "Unsubscribe"; this.upNext = "Up next"; + this.uploadedBy = "Uploaded by "; + this.videoManager = "Video Manager"; + this.videos = "Videos"; + this.category = "Category"; + this.likes = " likes,"; } else { + this.about = "About"; + this.addToBtn = "Add to"; + this.addToPlaylist = "Add to playlist"; + this.analytics = "Analytics"; this.autoplay = "Autoplay"; + this.byline = "by "; + this.createPlaylist = "Create"; + this.creatorStudio = "Creator studio"; + this.dislikes = " dislikes"; + this.enterPlaylistTitle = "Enter playlist title..."; + this.license = "License"; + this.like = "Like"; + this.moreBtn = "More"; + this.noDescription = "No description available."; + this.onDate = "on "; + this.privatePlaylist = "Private"; + this.publicPlaylist = "Public"; + this.publishedOn = "Published on "; + this.publishedOnOld = "Published on "; + this.saveBtn = "Save"; + this.shareBtn = "Share"; + this.showLess = "Show less"; + this.showMore = "Show more"; + this.standardLicense = "Standard YouTube License"; this.subscribe = "Subscribe"; this.subscribed = "Subscribed"; - this.videos = "Videos"; + this.tags = "Tags"; + this.unlistedPlaylist = "Unlisted"; this.unsubscribe = "Unsubscribe"; this.upNext = "Up next"; + this.uploadedBy = "Uploaded by "; + this.videoManager = "Video Manager"; + this.videos = "Videos"; + this.category = "Category"; + this.likes = " likes,"; } } } @@ -598,7 +714,7 @@ function WPSidebarEveryLoad(data) { @@ -653,7 +769,7 @@ function WPSidebarEveryLoad(data) { Channel settings