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
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -664,16 +780,16 @@ function WPSidebarEveryLoad(data) {
-
Category:
+
${emeraldLanguageModel.category}:
-
Tags:
+
${emeraldLanguageModel.tags}:
-
License:
-
Standard YouTube License
+
${emeraldLanguageModel.license}:
+
${emeraldLanguageModel.standardLicense}
@@ -1179,7 +1295,7 @@ function createWatchAbove(wV) { Channel settings
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -1243,7 +1359,7 @@ function createWatchAbove(wV) { Channel settings
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -1292,13 +1408,13 @@ function createWatch4(wV) {
- Public + ${emeraldLanguageModel.publicPlaylist}
- Unlisted + ${emeraldLanguageModel.unlistedPlaylist}
- Private + ${emeraldLanguageModel.privatePlaylist}
@@ -1362,7 +1478,7 @@ function createWatch4(wV) {
- Share + ${emeraldLanguageModel.shareBtn}
@@ -1414,7 +1530,7 @@ function createWatch4(wV) {
- Add to playlist + ${emeraldLanguageModel.addToPlaylist}
@@ -1423,14 +1539,14 @@ function createWatch4(wV) {
- +
@@ -1640,7 +1756,7 @@ function createWatch5(wV) {
- Public + ${emeraldLanguageModel.publicPlaylist}
Unlisted @@ -1665,7 +1781,7 @@ function createWatch5(wV) {
- Like + ${emeraldLanguageModel.like}
@@ -1685,12 +1801,12 @@ function createWatch5(wV) {
- Add to playlist + ${emeraldLanguageModel.addToPlaylist}
@@ -1752,14 +1868,14 @@ function createWatch5(wV) {