Skip to content

Commit

Permalink
Merge pull request #142 from throwaway96/block-adSlots-20240328
Browse files Browse the repository at this point in the history
Hopefully block additional ads
  • Loading branch information
throwaway96 authored Mar 29, 2024
2 parents cdd89de + bf02d70 commit 8738698
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ JSON.parse = function () {
r.adPlacements = [];
}

if (Array.isArray(r.adSlots)) {
r.adSlots = [];
}

// remove ads from home
const homeSectionListRenderer =
r?.contents?.tvBrowseRenderer?.content?.tvSurfaceContentRenderer?.content
Expand Down

0 comments on commit 8738698

Please sign in to comment.