Skip to content

Commit

Permalink
bilibili set default language to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Jun 10, 2024
1 parent 88cceeb commit 844279c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/vot-cloudflare-min.user.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/vot-cloudflare.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6234,7 +6234,7 @@ class VideoHandler {
window.location.hostname.includes("my.mail.ru")
) {
videoData.detectedLanguage = "ru";
} else if (["bilibili", "youku"].includes(this.site.host)) {
} else if (["youku"].includes(this.site.host)) {
videoData.detectedLanguage = "zh";
} else if (["vk"].includes(this.site.host)) {
const trackLang = document.getElementsByTagName("track")?.[0]?.srclang;
Expand Down Expand Up @@ -6282,6 +6282,7 @@ class VideoHandler {
videoData.translationHelp = udemyData.translationHelp;
} else if (
[
"bilibili",
"piped",
"invidious",
"bitchute",
Expand Down
2 changes: 1 addition & 1 deletion dist/vot-min.user.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6124,7 +6124,7 @@ class VideoHandler {
window.location.hostname.includes("my.mail.ru")
) {
videoData.detectedLanguage = "ru";
} else if (["bilibili", "youku"].includes(this.site.host)) {
} else if (["youku"].includes(this.site.host)) {
videoData.detectedLanguage = "zh";
} else if (["vk"].includes(this.site.host)) {
const trackLang = document.getElementsByTagName("track")?.[0]?.srclang;
Expand Down Expand Up @@ -6172,6 +6172,7 @@ class VideoHandler {
videoData.translationHelp = udemyData.translationHelp;
} else if (
[
"bilibili",
"piped",
"invidious",
"bitchute",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ class VideoHandler {
window.location.hostname.includes("my.mail.ru")
) {
videoData.detectedLanguage = "ru";
} else if (["bilibili", "youku"].includes(this.site.host)) {
} else if (["youku"].includes(this.site.host)) {
videoData.detectedLanguage = "zh";
} else if (["vk"].includes(this.site.host)) {
const trackLang = document.getElementsByTagName("track")?.[0]?.srclang;
Expand Down Expand Up @@ -1689,6 +1689,7 @@ class VideoHandler {
videoData.translationHelp = udemyData.translationHelp;
} else if (
[
"bilibili",
"piped",
"invidious",
"bitchute",
Expand Down

0 comments on commit 844279c

Please sign in to comment.