Skip to content

Commit

Permalink
Added Freevee ad skipping and better mutation observing in v.1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 23, 2022
1 parent 6d35337 commit 527a826
Show file tree
Hide file tree
Showing 15 changed files with 295 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"editor.experimental.stickyScroll.enabled": true
"editor.experimental.stickyScroll.enabled": true,
"cSpell.words": ["Freevee"]
}
12 changes: 12 additions & 0 deletions Publish/NetflixAmazon Auto-Skip simplified.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This extension includes a content script, "skipper.js", that is injected into all pages, but will only run if under "amazon/*/video","netflix".

It automatically skips intros, Credits, recaps, and anything else you don't want to watch on Netflix and Amazon Prime video.
It automatically skips Ads, intros, Credits, recaps, and anything else you don't want to watch on Netflix and Amazon Prime video.

You can configure what to watch and what to skip in the settings Page:

Expand All @@ -28,6 +28,7 @@ Amazon Prime video Automatically skipping:
* Intros
* Credits: automatically goes to the next episode
* Self promoting ads
* Freevee Ads: Watch series for free without ads


Disclaimer
Expand Down
4 changes: 2 additions & 2 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"manifest_version": 3,
"name": "Netflix/Prime Auto-Skip",
"version": "1.0.5",
"version": "1.0.6",

"description": "Automatically skip intros, Credits, Ads on Amazon Prime video and intros, recaps, credits and inactivity warnings on Netflix.",
"description": "Automatically skip Ads, intros, Credits on Amazon Prime video and intros, recaps, credits and inactivity on Netflix.",
"homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip",
"icons": {
"16": "icons/NetflixAmazon Auto-Skip--16.png",
Expand Down
11 changes: 9 additions & 2 deletions chrome/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<img src="../icons/NetflixAmazon Auto-Skip.svg" />
<div class="flex-center flex-col">
<h2 class="title">Auto-skip</h2>
<p style="color: grey; font-size: 1em">Version: 1.0.4</p>
<p style="color: grey; font-size: 1em">Version: 1.0.6</p>
</div>
</div>
</div>
Expand All @@ -42,12 +42,19 @@ <h2>Prime Video Auto-skips:</h2>
</label>
</div>
<div class="line flex">
<p>Skip Ads:</p>
<p>Skip Self Ads:</p>
<label class="switch">
<input type="checkbox" id="AmazonAds" />
<span class="slider round"></span>
</label>
</div>
<div class="line flex">
<p>Block Freevee Ads:</p>
<label class="switch">
<input type="checkbox" id="AmazonFreevee" />
<span class="slider round"></span>
</label>
</div>
</div>
<div class="categoryNetflix">
<h2>Netflix Auto-skips:</h2>
Expand Down
10 changes: 8 additions & 2 deletions chrome/popup/settings.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// global variables in localStorage
let settings;
const defaultSettings = {
settings: {
Amazon: { skipIntro: true, skipCredits: true, skipAd: true },
Amazon: { skipIntro: true, skipCredits: true, skipAd: true, blockFreevee: true },
Netflix: { skipIntro: true, skipRecap: true, skipCredits: true, skipBlocked: true },
},
};
let settings = defaultSettings.settings;
chrome.storage.sync.get("settings", function (result) {
settings = result.settings;
if (typeof settings !== "object") {
Expand All @@ -31,6 +31,8 @@ function setCheckboxesToSettings() {
if (button) button.checked = settings?.Amazon.skipCredits;
button = document.querySelector("#AmazonAds");
if (button) button.checked = settings?.Amazon.skipAd;
button = document.querySelector("#AmazonFreevee");
if (button) button.checked = settings?.Amazon.blockFreevee;
button = document.querySelector("#NetflixIntro");
if (button) button.checked = settings?.Netflix.skipIntro;
button = document.querySelector("#NetflixRecap");
Expand Down Expand Up @@ -61,6 +63,10 @@ function listenForClicks() {
settings.Amazon.skipAd = !settings.Amazon.skipAd;
console.log("settings.AmazonAd", settings);
chrome.storage.sync.set({ settings: settings }, function () {});
} else if (e.target.id === "AmazonFreevee") {
settings.Amazon.blockFreevee = !settings.Amazon.blockFreevee;
console.log("settings.blockFreevee", settings);
chrome.storage.sync.set({ settings: settings }, function () {});
} else if (e.target.id === "NetflixIntro") {
settings.Netflix.skipIntro = !settings.Netflix.skipIntro;
console.log("settings.NetflixIntro", settings);
Expand Down
Loading

0 comments on commit 527a826

Please sign in to comment.