mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-30 19:38:34 +03:00
Compare commits
10 Commits
5835eaf138
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4e1861a4a | ||
|
|
3974231895 | ||
|
|
a58bec2ebb | ||
|
|
2c019468a7 | ||
|
|
b020704c1c | ||
|
|
71efda2033 | ||
|
|
654e969131 | ||
|
|
f92aad5ac2 | ||
|
|
a097ed7caf | ||
|
|
9f10aaa31e |
@@ -63,7 +63,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|||||||
|
|
||||||
# Credit
|
# Credit
|
||||||
|
|
||||||
The awesome [Invidious API](https://docs.invidious.io/) was previously used, and the server is now using [NewLeaf](https://git.sr.ht/~cadence/NewLeaf) as a to get video info from YouTube.
|
The awesome [Invidious API](https://docs.invidious.io/) was previously used, and the server is now using [NewLeaf](https://git.sr.ht/~cadence/NewLeaf) to get video info from YouTube.
|
||||||
|
|
||||||
Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but very little code remains.
|
Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but very little code remains.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_fullName__",
|
"name": "__MSG_fullName__",
|
||||||
"short_name": "SponsorBlock",
|
"short_name": "SponsorBlock",
|
||||||
"version": "6.1.0",
|
"version": "6.1.2",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_Description__",
|
"description": "__MSG_Description__",
|
||||||
"homepage_url": "https://sponsor.ajay.app",
|
"homepage_url": "https://sponsor.ajay.app",
|
||||||
|
|||||||
@@ -12,5 +12,10 @@
|
|||||||
"64": "icons/SafariIconSponsorBlocker64px.png",
|
"64": "icons/SafariIconSponsorBlocker64px.png",
|
||||||
"128": "icons/SafariIconSponsorBlocker128px.png"
|
"128": "icons/SafariIconSponsorBlocker128px.png"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"browser_specific_settings": {
|
||||||
|
"safari": {
|
||||||
|
"strict_min_version": "14.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule maze-utils updated: 49dad0e67b...b036b7c006
Submodule public/_locales updated: d1f95394ca...432840948c
@@ -950,13 +950,14 @@ class PreviewBar {
|
|||||||
chapterButton.disabled = false;
|
chapterButton.disabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content:not(.sponsorChapterText)") as HTMLDivElement;
|
||||||
chapterTitle.style.display = "none";
|
chapterTitle.style.display = "none";
|
||||||
|
|
||||||
const chapterCustomText = (chapterTitle.parentElement.querySelector(".sponsorChapterText") || (() => {
|
const chapterCustomText = (chapterTitle.parentElement.querySelector(".sponsorChapterText") || (() => {
|
||||||
const elem = document.createElement("div");
|
const elem = document.createElement("div");
|
||||||
chapterTitle.parentElement.insertBefore(elem, chapterTitle);
|
chapterTitle.parentElement.insertBefore(elem, chapterTitle);
|
||||||
elem.classList.add("sponsorChapterText");
|
elem.classList.add("sponsorChapterText");
|
||||||
|
elem.classList.add("ytp-chapter-title-content");
|
||||||
if (document.location.host === "tv.youtube.com") {
|
if (document.location.host === "tv.youtube.com") {
|
||||||
elem.style.lineHeight = "initial";
|
elem.style.lineHeight = "initial";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user