diff --git a/README.md b/README.md index a4af4c9f..83ff4565 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Badge Badge Badge - Badge + Badge Badge

@@ -50,14 +50,10 @@ See the [Wiki](https://github.com/ajayyy/SponsorBlock/wiki) for important links. The backend server code is available here: https://github.com/ajayyy/SponsorBlockServer -It is a simple SQLite database that will hold all the timing data. - -To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database.db ([License](https://github.com/ajayyy/SponsorBlock/wiki/Database-and-API-License)). If you are planning on using the database in another project, please read the [API Docs](https://github.com/ajayyy/SponsorBlock/wiki/API-Docs) page for more information. +To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database ([License](https://github.com/ajayyy/SponsorBlock/wiki/Database-and-API-License)). If you are planning on using the database in another project, please read the [API Docs](https://github.com/ajayyy/SponsorBlock/wiki/API-Docs) page for more information. The dataset and API are now being used in some [ports](https://github.com/ajayyy/SponsorBlock/wiki/Unofficial-Ports) as well as a [neural network](https://github.com/andrewzlee/NeuralBlock). -A [previous project](https://github.com/Sponsoff/sponsorship_remover) attempted to create a neural network to predict when sponsored segments happen. That project is sadly abandoned now, so I have decided to attempt to revive this idea starting from a crowd-sourced system instead. - # API You can read the API docs [here](https://github.com/ajayyy/SponsorBlockServer#api-docs). @@ -79,7 +75,6 @@ The result is in `dist`. This can be loaded as an unpacked extension Run `npm run dev` to run the extension using a clean browser profile with hot reloading. Use `npm run dev:firefox` for Firefox. This uses [`web-ext run`](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#commands). Known chromium bug: Extension is not loaded properly on first start. Visit `chrome://extensions/` and reload the extension. - ### Attribution Generation If you contribute and add a dependency, update the attribution file using the following steps: @@ -95,14 +90,14 @@ mv ./oss-attribution/attribution.txt ./public/oss-attribution/attribution.txt The awesome [Invidious API](https://github.com/omarroth/invidious/wiki/API) was previously used. -Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but zero code remains. +Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but very little code remains. Icons made by: -* Gregor Cresnar from www.flaticon.com and are licensed by CC 3.0 BY -* Freepik from www.flaticon.com and are licensed by CC 3.0 BY +* Gregor Cresnar from www.flaticon.com and are licensed by CC 3.0 BY +* Freepik from www.flaticon.com and are licensed by CC 3.0 BY * Alexander Kahlkopf from iconmonstr.com and are licensed by iconmonstr License ### License -This project is licensed under GNU GPL v3 +This project is licensed under GNU GPL v3 or any later version diff --git a/manifest/manifest.json b/manifest/manifest.json index 0f15941b..fb1ff4af 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "SponsorBlock", - "version": "2.0.13", + "version": "2.0.13.1", "default_locale": "en", "description": "__MSG_Description__", "homepage_url": "https://sponsor.ajay.app", diff --git a/package-lock.json b/package-lock.json index 24535d48..7041ec66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16734,9 +16734,9 @@ "dev": true }, "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==" }, "yallist": { "version": "3.1.1", diff --git a/public/_locales/pl/messages.json b/public/_locales/pl/messages.json index 39890032..5544f8ba 100644 --- a/public/_locales/pl/messages.json +++ b/public/_locales/pl/messages.json @@ -95,7 +95,7 @@ "message": "Wystąpił błąd połączenia. Kod błędu: " }, "wantToSubmit": { - "message": "Czy chcesz wysłać dla video o id" + "message": "Czy chcesz wysłać dla filmu o id" }, "clearTimes": { "message": "Wyczyść segmenty" @@ -131,10 +131,10 @@ "message": "Ranking" }, "recordTimesDescription": { - "message": "Prześlij" + "message": "Wyślij" }, "submissionEditHint": { - "message": "Edycja sekcji pojawi się po kliknięciu „Wyślij”", + "message": "Edycja sekcji pojawi się po wciśnięciu „Wyślij”", "description": "Appears in the popup to inform them that editing has been moved to the video player." }, "popupHint": { @@ -517,7 +517,7 @@ "message": "Muzyka: Sekcja niemuzyczna" }, "category_music_offtopic_description": { - "message": "Do użytku tylko na filmach muzycznych. Powinno to być używane jedynie do tych sekcji filmów muzycznych, które nie są uwzględnione w innej kategorii." + "message": "Do użytku jedynie w filmach muzycznych. Powinno to być używane jedynie do tych sekcji filmów muzycznych, które nie są uwzględnione w innej kategorii." }, "category_music_offtopic_short": { "message": "Bez muzyki" diff --git a/public/_locales/uk/messages.json b/public/_locales/uk/messages.json index ecf85ecb..f1741637 100644 --- a/public/_locales/uk/messages.json +++ b/public/_locales/uk/messages.json @@ -516,6 +516,9 @@ "category_music_offtopic": { "message": "Музика: Сегмент без музики" }, + "category_music_offtopic_description": { + "message": "Тільки для використання в музичних кліпах. Використовується для сегментів музичних кліпів, які не належать до іншої категорії." + }, "category_music_offtopic_short": { "message": "Без музики" }, diff --git a/public/help/index_en.html b/public/help/index_en.html index 112e9568..7eaabf6a 100644 --- a/public/help/index_en.html +++ b/public/help/index_en.html @@ -131,9 +131,9 @@

The awesome Invidious API is used to grab the time the video was published.

-

Some icons made by Gregor Cresnar from www.flaticon.com and are licensed by CC 3.0 BY

+

Some icons made by Gregor Cresnar from www.flaticon.com and are licensed by CC 3.0 BY

-

Some icons made by Freepik from www.flaticon.com and are licensed by CC 3.0 BY

+

Some icons made by Freepik from www.flaticon.com and are licensed by CC 3.0 BY

Open Source Licenses

diff --git a/src/content.ts b/src/content.ts index 549236c7..f4652de7 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1544,8 +1544,9 @@ function getSegmentsMessage(sponsorTimes: SponsorTime[]): string { function addHotkeyListener(): boolean { let videoRoot = document.getElementById("movie_player") as HTMLDivElement; if (onInvidious) videoRoot = (document.getElementById("player-container") ?? document.getElementById("player")) as HTMLDivElement; + if (video.baseURI.startsWith("https://www.youtube.com/tv#/")) videoRoot = document.querySelector("ytlr-watch-page") as HTMLDivElement; - if (!videoRootsWithEventListeners.includes(videoRoot)) { + if (videoRoot && !videoRootsWithEventListeners.includes(videoRoot)) { videoRoot.addEventListener("keydown", hotkeyListener); videoRootsWithEventListeners.push(videoRoot); return true;