Skip to content

Commit

Permalink
1.1.54
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Jan 7, 2025
1 parent 9e0693d commit 09ae2ea
Show file tree
Hide file tree
Showing 25 changed files with 135 additions and 19 deletions.
2 changes: 1 addition & 1 deletion AuthorHours.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"time":"507h38m39s"}
{"time":"514h55m0s"}
6 changes: 6 additions & 0 deletions chrome/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Zeit der übersprungenen Disney-Werbung."
},
"ShowYearSwitch": {
"message": "Erscheinungsjahr anzeigen:"
},
"ShowYearDescription": {
"message": "Zeigt das Erscheinungsjahr neben der Bewertung an."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Time of skipped Disney Ads."
},
"ShowYearSwitch": {
"message": "Show release year:"
},
"ShowYearDescription": {
"message": "Shows the release year next to the rating."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Tiempo de anuncios Disney saltados."
},
"ShowYearSwitch": {
"message": "Mostrar año de lanzamiento:"
},
"ShowYearDescription": {
"message": "Muestra el año de publicación junto a la clasificación."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Durée des publicités Disney sautées."
},
"ShowYearSwitch": {
"message": "Année de sortie de l'exposition :"
},
"ShowYearDescription": {
"message": "Indique l'année de publication à côté de la note."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Tempo di salto degli annunci Disney."
},
"ShowYearSwitch": {
"message": "Anno di uscita dello spettacolo:"
},
"ShowYearDescription": {
"message": "Mostra l'anno di uscita accanto al rating."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "ディズニーの広告をスキップした時間。"
},
"ShowYearSwitch": {
"message": "ショーのリリース年"
},
"ShowYearDescription": {
"message": "レーティングの横にリリース年を表示。"
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "디즈니 광고를 건너뛴 시간."
},
"ShowYearSwitch": {
"message": "출시 연도를 표시합니다:"
},
"ShowYearDescription": {
"message": "등급 옆에 출시 연도를 표시합니다."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Czas pominiętych reklam Disneya."
},
"ShowYearSwitch": {
"message": "Rok premiery programu:"
},
"ShowYearDescription": {
"message": "Pokazuje rok wydania obok oceny."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Tempo de saltar anúncios da Disney."
},
"ShowYearSwitch": {
"message": "Ano de lançamento do espetáculo:"
},
"ShowYearDescription": {
"message": "Mostra o ano de lançamento ao lado da classificação."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Tempo de saltar anúncios da Disney."
},
"ShowYearSwitch": {
"message": "Ano de lançamento do espetáculo:"
},
"ShowYearDescription": {
"message": "Mostra o ano de lançamento ao lado da classificação."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/sv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Tid för överhoppade Disney-annonser."
},
"ShowYearSwitch": {
"message": "Visa utgivningsår:"
},
"ShowYearDescription": {
"message": "Visar utgivningsåret bredvid klassificeringen."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/tr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "Disney reklamlarını atlama zamanı."
},
"ShowYearSwitch": {
"message": "Gösterinin çıkış yılı:"
},
"ShowYearDescription": {
"message": "Derecelendirmenin yanında yayın yılını gösterir."
}
}
6 changes: 6 additions & 0 deletions chrome/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@
},
"DisneyAdDescription": {
"message": "跳过迪斯尼广告的时间"
},
"ShowYearSwitch": {
"message": "节目发布年份:"
},
"ShowYearDescription": {
"message": "显示评级旁边的发行年份。"
}
}
2 changes: 1 addition & 1 deletion chrome/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const defaultSettings = {
disableNumpad: true,
},
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true, showYear: false },
Statistics: {
AmazonAdTimeSkipped: 0,
NetflixAdTimeSkipped: 0,
Expand Down
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.1.53",
"version": "1.1.54",
"homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip",
"icons": {
"16": "icons/NetflixAmazon Auto-Skip--16.png",
Expand Down
12 changes: 9 additions & 3 deletions chrome/popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
<img class="Logo" src="../icons/NetflixAmazon Auto-Skip.svg" alt="Logo">
<div class="flex-center flex-col">
<h2 class="title" data-i18n>pageTitle</h2>
<p style="color: grey; font-size: 1em">v.1.1.53</p>
<p style="color: grey; font-size: 1em">v.1.1.54</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
href="https://chrome.google.com/webstore/detail/netflixprime-auto-skip/akaimhgappllmlkadblbdknhbfghdgle">
<p style="font-size: 1em" data-i18n>rateNow</p>
<img src="https://img.shields.io/chrome-web-store/stars/akaimhgappllmlkadblbdknhbfghdgle?color=e60010"
alt="rating">
<img src="https://img.shields.io/chrome-web-store/stars/akaimhgappllmlkadblbdknhbfghdgle?color=e60010" alt="rating">
</a>
<div class="flex flex-row">
<a class="flex flex-center" style="font-size: 1.5em;"
Expand Down Expand Up @@ -216,6 +215,13 @@ <h2 data-i18n>SharedPageTitle</h2>
<span class="slider round"></span>
</label>
</div>
<div class="line flex">
<p data-i18n>ShowYearSwitch</p>
<label class="switch">
<input type="checkbox" id="VideoShowYear">
<span class="slider round"></span>
</label>
</div>
<a href="https://www.themoviedb.org" target="_blank" class="line flex">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 489.04 35.4">
<defs>
Expand Down
28 changes: 26 additions & 2 deletions chrome/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<img class="Logo" src="../icons/NetflixAmazon Auto-Skip.svg" alt="Logo">
<div class="flex-center flex-col">
<h2 class="title" data-i18n>pageTitle</h2>
<p style="font-size: 1em">v.1.1.53</p>
<p style="font-size: 1em">v.1.1.54</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
Expand Down Expand Up @@ -152,6 +152,15 @@ <h1 data-i18n>defaultPageTitle</h1>
</div>
<p class="description" data-i18n>DefaultPaidContentDescription</p>
<hr>
<div class="line flex">
<p data-i18n>ShowYearSwitch</p>
<label class="switch">
<input type="checkbox" id="VideoShowYear">
<span class="slider round"></span>
</label>
</div>
<p class="description" data-i18n>ShowYearDescription</p>
<hr>
<div class="line flex">
<p data-i18n>EpilepsySwitch</p>
<label class="switch">
Expand Down Expand Up @@ -466,6 +475,15 @@ <h2 data-i18n>SharedPageTitle</h2>
</div>
<p class="description" data-i18n>EpilepsySwitchDescription</p>
<hr>
<div class="line flex">
<p data-i18n>ShowYearSwitch</p>
<label class="switch" style="margin-left: 5px">
<input type="checkbox" id="VideoShowYear">
<span class="slider round"></span>
</label>
</div>
<p class="description" data-i18n>ShowYearSwitchDescription</p>
<hr>
<div class="hidden" id="PermissiontabsDiv">
<div class="line flex">
<p data-i18n>autoOpenSettings</p>
Expand Down Expand Up @@ -735,7 +753,13 @@ <h2 data-i18n>ImportSettings</h2>
<h2>Changelog</h2>
<div>
<div class="line flex">
<h2>1.1.53</h2>
<h2>1.1.54</h2>
<ul>
<li>Added release year optionally.</li>
</ul>
</div>
<div class="line flex">
<p>1.1.53</p>
<ul>
<li>Prime wont load Ratings for Live tv</li>
<li>Prime fixed TMDB title card on chrome.</li>
Expand Down
6 changes: 4 additions & 2 deletions chrome/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const defaultSettings = {
disableNumpad: true,
},
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true, showYear: false },
Statistics: {
AmazonAdTimeSkipped: 0,
NetflixAdTimeSkipped: 0,
Expand Down Expand Up @@ -235,6 +235,7 @@ async function setCheckboxesToSettings() {
VideoCheckboxes.forEach((key) => {
setButtonChecked("Video" + capitalizeFirstLetter(key), getBooleanOfCategory(key));
});
setButtonChecked("VideoShowYear", settings?.Video.showYear);
setButtonChecked("VideoAds", settings?.Amazon.blockFreevee && settings?.Netflix.skipAd && settings?.Disney.skipAd);
setButtonChecked("VideoFullScreen", settings?.Video.playOnFullScreen);
setButtonChecked("VideoDoubleClick", settings?.Video.doubleClick);
Expand Down Expand Up @@ -431,7 +432,8 @@ function listenForClicks() {
settings.Video.scrollVolume =
VideoSkips;
if (VideoSkips) setCategoryToBoolean("watchCredits", false);
} else if (e.target.id === "VideoAds")
} else if (e.target.id === "VideoShowYear") settings.Video.showYear = !settings.Video.showYear;
else if (e.target.id === "VideoAds")
settings.Amazon.blockFreevee =
settings.Netflix.skipAd =
settings.Disney.skipAd =
Expand Down
14 changes: 10 additions & 4 deletions chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const isEdge = /edg/i.test(ua);
const htmlLang = document.documentElement.lang;
const date = new Date();
const today = date.toISOString().split("T")[0];
const version = "1.1.53";
const version = "1.1.54";
if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO) {
/* eslint-env root:true */
// global variables in localStorage
Expand Down Expand Up @@ -72,7 +72,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
disableNumpad: true,
},
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true, doubleClick: true, scrollVolume: true, showYear: false },
Statistics: {
AmazonAdTimeSkipped: 0,
NetflixAdTimeSkipped: 0,
Expand Down Expand Up @@ -293,7 +293,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
media_type: queryType == "multi" ? movie?.media_type : queryType,
score: movie?.vote_average,
vote_count: movie?.vote_count,
release_date: movie?.release_date,
release_date: movie?.release_date || movie?.first_air_date,
title: movie?.title || movie?.original_title || movie?.name || movie?.original_name,
date: today,
db: "tmdb",
Expand Down Expand Up @@ -557,7 +557,13 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO

// div.id = "imdb";
if (data?.score >= 0) {
div.textContent = data.score?.toFixed(1);
let releaseDate = "";
if (settings.Video?.showYear && data?.release_date) {
releaseDate = new Date(data?.release_date)?.getFullYear() + "-";
// const year = new Date(data?.release_date)?.getYear();
// releaseDate = year >= 100 ? (year + " ").substring(1) : year + " ";
}
div.textContent = releaseDate + data.score?.toFixed(1);
div.setAttribute("alt", data?.title + ", OG title: " + title + ", Vote count: " + vote_count);
} else {
div.textContent = "?";
Expand Down
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.1.53",
"version": "1.1.54",
"homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip",
"icons": {
"16": "icons/NetflixAmazon Auto-Skip.svg",
Expand Down
2 changes: 1 addition & 1 deletion firefox/popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<img class="Logo" src="../icons/NetflixAmazon Auto-Skip.svg" alt="Logo">
<div class="flex-center flex-col">
<h2 class="title" data-i18n>pageTitle</h2>
<p style="color: grey; font-size: 1em">v.1.1.53</p>
<p style="color: grey; font-size: 1em">v.1.1.54</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
Expand Down
2 changes: 1 addition & 1 deletion firefox/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<img class="Logo" src="../icons/NetflixAmazon Auto-Skip.svg" alt="Logo">
<div class="flex-center flex-col">
<h2 class="title" data-i18n>pageTitle</h2>
<p style="font-size: 1em">v.1.1.53</p>
<p style="font-size: 1em">v.1.1.54</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
Expand Down
2 changes: 1 addition & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const isEdge = /edg/i.test(ua);
const htmlLang = document.documentElement.lang;
const date = new Date();
const today = date.toISOString().split("T")[0];
const version = "1.1.53";
const version = "1.1.54";
if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO) {
/* eslint-env root:true */
// global variables in localStorage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streaming-enhanced",
"version": "1.1.53",
"version": "1.1.54",
"description": "Automatically skip Ads, Intros, Credits and add Speed Control, etc. on Netflix, Prime video, Disney+ & Hotstar and Crunchyroll.",
"scripts": {
"start": "web-ext run --keep-profile-changes --firefox-profile=test --profile-create-if-missing",
Expand Down

0 comments on commit 09ae2ea

Please sign in to comment.