Skip to content

Commit

Permalink
1.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed May 24, 2024
1 parent 38b618b commit eea40e5
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion chrome/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const defaultSettings = {
},
};
let settings = defaultSettings.settings;
const version = "1.1.11";
const version = "1.1.12";
chrome.storage.sync.get("settings", function (result) {
console.log(
"%cNetflix%c/%cPrime%c Auto-Skip",
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.11",
"version": "1.1.12",

"homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion chrome/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.11</p>
<p style="color: grey; font-size: 1em">v.1.1.12</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
Expand Down
10 changes: 8 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.11</p>
<p style="font-size: 1em">v.1.1.12</p>
</div>
</div>
<a target="_blank" class="flex-center flex-col" style="text-align: center; text-decoration: none"
Expand Down Expand Up @@ -672,7 +672,13 @@ <h2 data-i18n>ImportSettings</h2>
<h2>Changelog</h2>
<div>
<div class="line flex">
<h2>1.1.11</h2>
<h2>1.1.12</h2>
<ul>
<li>Removes Netflix pause ads</li>
</ul>
</div>
<div class="line flex">
<p>1.1.11</p>
<ul>
<li>Fixed Disney TMDB rating</li>
<li>Filter duplicates removed, since now unnecessary on Disney</li>
Expand Down
17 changes: 16 additions & 1 deletion chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const isMobile = /mobile|streamingEnhanced/i.test(ua);
const isEdge = /edg/i.test(ua);
// const isFirefox = /firefox/i.test(ua);
// const isChrome = /chrome/i.test(ua);
const version = "1.1.11";
const version = "1.1.12";
if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO) {
/* eslint-env root:true */
// global variables in localStorage
Expand Down Expand Up @@ -708,6 +708,21 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
lastAdTimeText = 0;
if (settings.Video.epilepsy) video.style.opacity = 1;
}

// pause video shows ad
// sherlock show comes alot.
const div = document.querySelector('div[data-uia="pause-ad-title-display"]');
const button = document.querySelector('button[data-uia="pause-ad-expand-button"]');
if (video.paused && button && div.checkVisibility({ opacityProperty: true }) && lastAdTimeText != parseInt(video.currentTime / 10)) {
lastAdTimeText = parseInt(video.currentTime / 10);
resetLastATimeText();
button.click();
log("Remove Video Paused ad", button);
increaseBadge();
setTimeout(function () {
video.pause();
}, 100);
}
}
}, 100);
}
Expand Down
2 changes: 1 addition & 1 deletion firefox/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const defaultSettings = {
},
};
let settings = defaultSettings.settings;
const version = "1.1.11";
const version = "1.1.12";
browser.storage.sync.get("settings", function (result) {
console.log(
"%cNetflix%c/%cPrime%c Auto-Skip",
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.11",
"version": "1.1.12",
"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.11</p>
<p style="color: grey; font-size: 1em">v.1.1.12</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.11</p>
<p style="font-size: 1em">v.1.1.12</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 @@ -29,7 +29,7 @@ const isMobile = /mobile|streamingEnhanced/i.test(ua);
const isEdge = /edg/i.test(ua);
// const isFirefox = /firefox/i.test(ua);
// const isChrome = /chrome/i.test(ua);
const version = "1.1.11";
const version = "1.1.12";
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.11",
"version": "1.1.12",
"description": "Automatically skip Ads, Intros, Credits and add Speed Control, etc. on Netflix, Prime video, Disney+ & Hotstar and Crunchyroll.",
"scripts": {
"start": "web-ext run",
Expand Down

0 comments on commit eea40e5

Please sign in to comment.