Skip to content

Commit

Permalink
builded 1.5.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Mar 17, 2024
1 parent d491e28 commit c91d902
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 9 deletions.
1 change: 1 addition & 0 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ You can see all the restrictions related to site support in [wiki](https://githu
- **[ProxiTok](https://proxitok.pabloferreiro.es/)**
- **[[⚠️] Invidious](https://yewtu.be)**
- **[[⚠️] Piped](https://piped.video)**
- **Any direct web links to `.mp4`**

⚠️ - Requires additional actions, more in **[Wiki](https://github.com/ilyhalight/voice-over-translation/wiki/%5BEN%5D-Supported-sites)**

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
- **[ProxiTok](https://proxitok.pabloferreiro.es/)**
- **[[⚠️] Invidious](https://yewtu.be)**
- **[[⚠️] Piped](https://piped.video)**
- **Любые прямые веб-ссылки на `.mp4`**

⚠️ - Требует дополнительных действий, подробнее в **[Wiki](https://github.com/ilyhalight/voice-over-translation/wiki/%5BRU%5D-Supported-sites)**

Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<!-- TODO: TWITCH STREAM TRANSLATION -->

# 1.5.1.3
- Добавлена поддержка прямых веб-ссылок на видео (.mp4)
- Добавлено скрытие кнопки перевода, если не найден VideoID

# 1.5.1.2
- Исправлен баг с работой на YouTube Embed
- Изменена логика поиска плеера на Twitch

# 1.5.1.1
- Исправление работы при отключенном автовоспроизведение (#551) от @SashaXser в #552
- Добавлена библиотека `npm-run-all` для ускорения процесса сборки с помощью параллельного запуска команд. Благодаря этому полная сборка расширения была ускорена в ~2 раза.
Expand Down
5 changes: 3 additions & 2 deletions dist/vot-cloudflare-min.user.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/vot-cloudflare.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@
// @match *://*.newgrounds.com/*
// @match *://*.egghead.io/*
// @match *://*.youku.com/*
// @match *://*/*.mp4*
// @connect api.browser.yandex.ru
// @namespace vot-cloudflare
// @version 1.5.1.2
// @version 1.5.1.3
// @icon https://translate.yandex.ru/icons/favicon.ico
// @author sodapng, mynovelhost, Toil, SashaXser, MrSoczekXD
// @homepageURL https://github.com/ilyhalight/voice-over-translation/issues
Expand Down Expand Up @@ -2321,6 +2322,8 @@ const getVideoId = (service, video) => {
return url.pathname;
case "youku":
return url.pathname.match(/v_show\/id_[\w=]+/)?.[0];
case "directlink":
return url.pathname + url.search;
default:
return false;
}
Expand Down Expand Up @@ -4075,6 +4078,12 @@ const sites = () => {
match: /^v.youku.com$/,
selector: "#ykPlayer",
},
{
host: "directlink",
url: "any", // This is a stub. The present value is set using window.location.origin. Check "src/index.js:videoObserver.onVideoAdded.addListener" to get more info
match: (url) => /([^.]+).mp4/.test(url.pathname),
selector: null,
},
// Нужно куда-то заливать данные о плейлисте
// {
// host: "epicgames",
Expand Down Expand Up @@ -6298,7 +6307,7 @@ async function src_main() {
continue;
}

if (site.host === "peertube") {
if (["peertube", "directlink"].includes(site.host)) {
// we set the url of the current site, since peertube doesn't have a main server
site.url = window.location.origin;
}
Expand Down
5 changes: 3 additions & 2 deletions dist/vot-min.user.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@
// @match *://*.newgrounds.com/*
// @match *://*.egghead.io/*
// @match *://*.youku.com/*
// @match *://*/*.mp4*
// @connect api.browser.yandex.ru
// @namespace vot
// @version 1.5.1.2
// @version 1.5.1.3
// @icon https://translate.yandex.ru/icons/favicon.ico
// @author sodapng, mynovelhost, Toil, SashaXser, MrSoczekXD
// @homepageURL https://github.com/ilyhalight/voice-over-translation/issues
Expand Down Expand Up @@ -2305,6 +2306,8 @@ const getVideoId = (service, video) => {
return url.pathname;
case "youku":
return url.pathname.match(/v_show\/id_[\w=]+/)?.[0];
case "directlink":
return url.pathname + url.search;
default:
return false;
}
Expand Down Expand Up @@ -4059,6 +4062,12 @@ const sites = () => {
match: /^v.youku.com$/,
selector: "#ykPlayer",
},
{
host: "directlink",
url: "any", // This is a stub. The present value is set using window.location.origin. Check "src/index.js:videoObserver.onVideoAdded.addListener" to get more info
match: (url) => /([^.]+).mp4/.test(url.pathname),
selector: null,
},
// Нужно куда-то заливать данные о плейлисте
// {
// host: "epicgames",
Expand Down Expand Up @@ -6276,7 +6285,7 @@ async function src_main() {
continue;
}

if (site.host === "peertube") {
if (["peertube", "directlink"].includes(site.host)) {
// we set the url of the current site, since peertube doesn't have a main server
site.url = window.location.origin;
}
Expand Down
2 changes: 1 addition & 1 deletion src/headers.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "[VOT] - Voice Over Translation",
"description": "A small extension that adds a Yandex Browser video translation to other browsers",
"version": "1.5.1.2",
"version": "1.5.1.3",
"author": "sodapng, mynovelhost, Toil, SashaXser, MrSoczekXD",
"namespace": "vot",
"icon": "https://translate.yandex.ru/icons/favicon.ico",
Expand Down

0 comments on commit c91d902

Please sign in to comment.