Skip to content

Commit

Permalink
Amazon skipCredits now not triggered if last episode
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Jan 14, 2025
1 parent 261007b commit 82f3a69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.1.57

- fixed bug in Crunchyroll Release Calendar
- Amazon skipCredits now not triggered if last episode
-

## 1.1.56
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"displayName": "Streaming enhanced Netflix Disney Prime Video",
"description": "Skip ads, intros, credits and add adjust speed, etc. on Netflix, Prime video, Disney+, Crunchyroll and HBO max.",
"name": "streaming-enhanced",
"version": "1.1.56",
"version": "1.1.57",
"scripts": {
"web-ext": "web-ext run",
"firefox": "web-ext run --keep-profile-changes --firefox-profile=test --profile-create-if-missing",
Expand Down
6 changes: 4 additions & 2 deletions src/content-script/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ async function Amazon_Credits() {
// only skipping to next episode not an entirely new series
const newEpNumber = document.querySelector("[class*=nextupcard-episode]") as HTMLElement
if (
newEpNumber &&
!/(?<!\S)1(?!\S)/.exec(newEpNumber?.textContent ?? "") &&
// is series
newEpNumber?.textContent &&
// not different show.
!/(?<!\S)1(?!\S)/.exec(newEpNumber.textContent) &&
lastAdTimeText != newEpNumber.textContent
) {
lastAdTimeText = newEpNumber.textContent ?? ""
Expand Down

0 comments on commit 82f3a69

Please sign in to comment.