Skip to content

Commit

Permalink
major: fadblock 1.3 [bump]
Browse files Browse the repository at this point in the history
  • Loading branch information
0x48piraj committed Oct 21, 2023
1 parent f6bf34e commit 7369f9c
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/chrome/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

resolve();
Expand Down
5 changes: 5 additions & 0 deletions src/chrome/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

const staticAds = [".ytd-companion-slot-renderer", ".ytd-action-companion-ad-renderer", // in-feed video ads
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "FadBlock: Friendly Adblock for Youtube™",
"version": "1.2.1",
"version": "1.3",
"description": "A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome.",
"icons": {
"16": "assets/icons/icon-16x16.png",
Expand Down
Binary file removed src/firefox/assets/fonts/Roboto-Black.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-BlackItalic.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Bold.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-BoldItalic.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Italic.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Light.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-LightItalic.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Medium.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-MediumItalic.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Regular.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-Thin.woff
Binary file not shown.
Binary file removed src/firefox/assets/fonts/Roboto-ThinItalic.woff
Binary file not shown.
5 changes: 5 additions & 0 deletions src/firefox/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

resolve();
Expand Down
5 changes: 5 additions & 0 deletions src/firefox/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

const staticAds = [".ytd-companion-slot-renderer", ".ytd-action-companion-ad-renderer", // in-feed video ads
Expand Down
2 changes: 1 addition & 1 deletion src/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "FadBlock: Friendly Adblock for Youtube™",
"version": "1.2.1",
"version": "1.3",
"description": "A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome.",
"icons": {
"16": "assets/icons/icon-16x16.png",
Expand Down
5 changes: 5 additions & 0 deletions src/opera/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

resolve();
Expand Down
5 changes: 5 additions & 0 deletions src/opera/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ const taimuRipu = async () => {
const setTimeoutHandler = () => {
const isAd = videoContainer?.classList.contains("ad-interrupting") || videoContainer?.classList.contains("ad-showing");
const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const surveyLock = document.querySelector(".ytp-ad-survey")?.length > 0;

if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
} else if (isAd && surveyLock) {
// CLICK ON THE SKIP SURVEY BTN
document.querySelector(".ytp-ad-skip-button")?.click();
}

const staticAds = [".ytd-companion-slot-renderer", ".ytd-action-companion-ad-renderer", // in-feed video ads
Expand Down
2 changes: 1 addition & 1 deletion src/opera/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "FadBlock: Friendly Adblock for Youtube™",
"version": "1.2.1",
"version": "1.3",
"description": "A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome.",
"icons": {
"16": "assets/icons/icon-16x16.png",
Expand Down

0 comments on commit 7369f9c

Please sign in to comment.