Skip to content

Commit

Permalink
refactor: drop old files
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Oct 22, 2023
1 parent 78afde8 commit 5a399a0
Show file tree
Hide file tree
Showing 77 changed files with 9 additions and 6,695 deletions.
2 changes: 1 addition & 1 deletion apps/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": "shared-assets/icons/icon-16x16.png",
Expand Down
2 changes: 1 addition & 1 deletion apps/firefox/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 Firefox.",
"icons": {
"16": "shared-assets/icons/icon-16x16.png",
Expand Down
2 changes: 1 addition & 1 deletion apps/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 Opera.",
"icons": {
"16": "shared-assets/icons/icon-16x16.png",
Expand Down
31 changes: 0 additions & 31 deletions build/build.sh

This file was deleted.

6 changes: 6 additions & 0 deletions libs/core/src/lib/skip-ads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ export function trySkipAds() {
videoContainer?.classList.contains('ad-showing');
const skipLock = document.querySelector<HTMLElement>('.ytp-ad-preview-text')
?.innerText;
const adSurvey = document.querySelector<HTMLFormElement>('.ytp-ad-survey');
const surveyLock = adSurvey && adSurvey.length > 0;

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

const staticAds = [
Expand Down
Binary file removed src/chrome/assets/icons/icon-120x120.png
Binary file not shown.
Binary file removed src/chrome/assets/icons/icon-16x16.png
Binary file not shown.
Binary file removed src/chrome/assets/icons/icon-48x48.png
Binary file not shown.
Binary file removed src/chrome/assets/logo.png
Binary file not shown.
97 changes: 0 additions & 97 deletions src/chrome/assets/popup/github-sponsor.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/chrome/assets/popup/home-feed-active.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/chrome/assets/popup/home-feed.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/chrome/assets/popup/paypal.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/chrome/assets/popup/popup-more.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/chrome/assets/popup/suggested-feed-active.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/chrome/assets/popup/suggested-feed.svg

This file was deleted.

7 changes: 0 additions & 7 deletions src/chrome/assets/popup/video-feed-active.svg

This file was deleted.

7 changes: 0 additions & 7 deletions src/chrome/assets/popup/video-feed.svg

This file was deleted.

Loading

0 comments on commit 5a399a0

Please sign in to comment.