Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netflix.com #135052

Merged
merged 10 commits into from
Nov 25, 2022
Prev Previous commit
Next Next commit
netflix.com javascript rule
  • Loading branch information
piquark6046 committed Nov 23, 2022
commit fa93e3af39d271927ea600d48695356615ff3dc0
2 changes: 2 additions & 0 deletions BaseFilter/sections/general_extensions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ kat.*,kickass.*,kickass2.*,kickasstorrents.*,kat2.*,kattracker.*,thekat.*,thekic
!
!
!
! https://github.com/AdguardTeam/AdguardFilters/pull/135052/
netflix.com#%#(() => { var ReplaceMap = {adBreaks: [], adState: null, currentAdBreak: 'undefined'}; Object.defineProperty = new Proxy(Object.defineProperty, { apply: (target, thisArg, ArgsList) => { var Original = Reflect.apply(target, thisArg, ArgsList); if (ArgsList[1] == 'getAdBreaks' || ArgsList[1] == 'getAdsDisplayStringParams') { return Original[ArgsList[1]] = function() {}; } else if (ArgsList[1] == 'adBreaks' || ArgsList[1] == 'currentAdBreak' || typeof Original['adBreaks'] !== 'undefined') { for (var [key, value] of Object.entries(Original)) { if (typeof ReplaceMap[key] !== 'undefined' && ReplaceMap[key] !== 'undefined') { Original[key] = ReplaceMap[key]; } else if (typeof ReplaceMap[key] !== 'undefined' && ReplaceMap[key] === 'undefined') { Original[key] = undefined; } } return Original; } else { return Original; }}})})()
netflix.com#%#//scriptlet('set-constant', 'netflix.appContext.state.model.models.truths.data.isAdsPlan', 'false')
netflix.com#%#//scriptlet('set-constant', 'netflix.appContext.state.model.models.playerModel.data.config.core.initParams.enableAdPlaygraphs', 'false')
! https://github.com/AdguardTeam/AdguardFilters/issues/135347
Expand Down