diff --git a/BaseFilter/sections/allowlist.txt b/BaseFilter/sections/allowlist.txt index 0005d6147b1..0ddfef5c7de 100644 --- a/BaseFilter/sections/allowlist.txt +++ b/BaseFilter/sections/allowlist.txt @@ -462,8 +462,9 @@ gergerhaber.net#@#ins.adsbygoogle[data-ad-slot] !+ PLATFORM(ios, ext_android_cb, ext_safari) @@||imasdk.googleapis.com/js/sdkloader/ima3.js$domain=soonersports.com ! https://github.com/AdguardTeam/AdguardFilters/issues/161551 -||imasdk.googleapis.com/js/sdkloader/ima3.js$script,redirect=google-ima3,domain=bloomberg.com,important ||securepubads.g.doubleclick.net/tag/js/gpt.js$script,redirect=googletagservices-gpt,domain=bloomberg.com,important +!+ PLATFORM(windows, mac, android, ext_chromium, ext_opera) +||imasdk.googleapis.com/js/sdkloader/ima3.js$script,redirect=noopjs,domain=bloomberg.com,important !+ NOT_PLATFORM(windows, mac, android, ext_chromium, ext_opera) @@||js-sec.indexww.com/ht/*.js$domain=bloomberg.com ! https://github.com/AdguardTeam/AdguardFilters/issues/161447 diff --git a/BaseFilter/sections/general_extensions.txt b/BaseFilter/sections/general_extensions.txt index b2850f684ce..9aa7f537c65 100644 --- a/BaseFilter/sections/general_extensions.txt +++ b/BaseFilter/sections/general_extensions.txt @@ -686,6 +686,8 @@ mentalfloss.com,90min.com,fansided.com,90min.de,12thmanrising.com,1428elm.com,8p ! https://github.com/AdguardTeam/AdguardFilters/issues/161551 ! Fixes video player bloomberg.com#%#(()=>{const t=[];t.push=function(t){try{t()}catch(t){}};window.headertag={cmd:t,buildGamMvt:function(t,c){const n={[c]:"https://securepubads.g.doubleclick.net/gampad/ads"};return n||{}},retrieveVideoDemand:function(t,c,n){const e=t[0]?.htSlotName;if("function"==typeof c)try{c(e)}catch(t){}}}})(); +! It's like google-ima3 redirect resource but bit modified +bloomberg.com#%#(()=>{const VERSION="3.453.0";const noopFunc=function(){};const ima={};const AdDisplayContainer=function(containerElement){const divElement=document.createElement("div");divElement.style.setProperty("display","none","important");divElement.style.setProperty("visibility","collapse","important");if(containerElement)containerElement.appendChild(divElement)};AdDisplayContainer.prototype.destroy=noopFunc;AdDisplayContainer.prototype.initialize=noopFunc;const ImaSdkSettings=function(){};ImaSdkSettings.CompanionBackfillMode={ALWAYS:"always",ON_MASTER_AD:"on_master_ad"};ImaSdkSettings.VpaidMode={DISABLED:0,ENABLED:1,INSECURE:2};ImaSdkSettings.prototype={c:true,f:{},i:false,l:"",p:"",r:0,t:"",v:"",getCompanionBackfill:noopFunc,getDisableCustomPlaybackForIOS10Plus(){return this.i},getDisabledFlashAds:()=>true,getFeatureFlags(){return this.f},getLocale(){return this.l},getNumRedirects(){return this.r},getPlayerType(){return this.t},getPlayerVersion(){return this.v},getPpid(){return this.p},getVpaidMode(){return this.C},isCookiesEnabled(){return this.c},isVpaidAdapter(){return this.M},setCompanionBackfill:noopFunc,setAutoPlayAdBreaks(a){this.K=a},setCookiesEnabled(c){this.c=!!c},setDisableCustomPlaybackForIOS10Plus(i){this.i=!!i},setDisableFlashAds:noopFunc,setFeatureFlags(f){this.f=!!f},setIsVpaidAdapter(a){this.M=a},setLocale(l){this.l=!!l},setNumRedirects(r){this.r=!!r},setPageCorrelator(a){this.R=a},setPlayerType(t){this.t=!!t},setPlayerVersion(v){this.v=!!v},setPpid(p){this.p=!!p},setVpaidMode(a){this.C=a},setSessionId:noopFunc,setStreamCorrelator:noopFunc,setVpaidAllowed:noopFunc,CompanionBackfillMode:{ALWAYS:"always",ON_MASTER_AD:"on_master_ad"},VpaidMode:{DISABLED:0,ENABLED:1,INSECURE:2}};const EventHandler=function(){this.listeners=new Map;this._dispatch=function(e){let listeners=this.listeners.get(e.type);listeners=listeners?listeners.values():[];for(const listener of Array.from(listeners))try{listener(e)}catch(r){console.trace(r)}};this.addEventListener=function(types,callback,options,context){if(!Array.isArray(types))types=[types];for(let i=0;ifalse;AdsManager.getCuePoints=()=>[0];AdsManager.getCurrentAd=()=>currentAd;AdsManager.getCurrentAdCuePoints=()=>[];AdsManager.getRemainingTime=()=>0;AdsManager.getVolume=function(){return this.volume};AdsManager.init=noopFunc;AdsManager.isCustomClickTrackingUsed=()=>false;AdsManager.isCustomPlaybackUsed=()=>false;AdsManager.pause=noopFunc;AdsManager.requestNextAdBreak=noopFunc;AdsManager.resize=noopFunc;AdsManager.resume=noopFunc;AdsManager.setVolume=function(v){this.volume=v};AdsManager.skip=noopFunc;AdsManager.start=function(){for(const type of[AdEvent.Type.LOADED,AdEvent.Type.STARTED,AdEvent.Type.CONTENT_RESUME_REQUESTED,AdEvent.Type.AD_BUFFERING,AdEvent.Type.FIRST_QUARTILE,AdEvent.Type.MIDPOINT,AdEvent.Type.THIRD_QUARTILE,AdEvent.Type.COMPLETE,AdEvent.Type.ALL_ADS_COMPLETED])try{this._dispatch(new ima.AdEvent(type))}catch(e){console.trace(e)}};AdsManager.stop=noopFunc;AdsManager.updateAdsRenderingSettings=noopFunc;const manager=Object.create(AdsManager);const AdsManagerLoadedEvent=function(type,adsRequest,userRequestContext){this.type=type;this.adsRequest=adsRequest;this.userRequestContext=userRequestContext};AdsManagerLoadedEvent.prototype={getAdsManager:()=>manager,getUserRequestContext(){if(this.userRequestContext)return this.userRequestContext;return{}}};AdsManagerLoadedEvent.Type={ADS_MANAGER_LOADED:"adsManagerLoaded"};const AdsLoader=EventHandler;AdsLoader.prototype.settings=new ImaSdkSettings;AdsLoader.prototype.contentComplete=noopFunc;AdsLoader.prototype.destroy=noopFunc;AdsLoader.prototype.getSettings=function(){return this.settings};AdsLoader.prototype.getVersion=()=>VERSION;AdsLoader.prototype.requestAds=function(adsRequest,userRequestContext){requestAnimationFrame(()=>{const {ADS_MANAGER_LOADED}=AdsManagerLoadedEvent.Type;const event=new ima.AdsManagerLoadedEvent(ADS_MANAGER_LOADED,adsRequest,userRequestContext);this._dispatch(event)});const e=new ima.AdError("adPlayError",1205,1205,"The browser prevented playback initiated without user interaction.",adsRequest,userRequestContext);requestAnimationFrame(()=>{this._dispatch(new ima.AdErrorEvent(e))})};const AdsRenderingSettings=noopFunc;const AdsRequest=function(){};AdsRequest.prototype={setAdWillAutoPlay:noopFunc,setAdWillPlayMuted:noopFunc,setContinuousPlayback:noopFunc};const AdPodInfo=function(){};AdPodInfo.prototype={getAdPosition:()=>1,getIsBumper:()=>false,getMaxDuration:()=>-1,getPodIndex:()=>1,getTimeOffset:()=>0,getTotalAds:()=>1};const UniversalAdIdInfo=function(){};UniversalAdIdInfo.prototype.getAdIdRegistry=function(){return""};UniversalAdIdInfo.prototype.getAdIsValue=function(){return""};const Ad=function(){};Ad.prototype={pi:new AdPodInfo,getAdId:()=>"",getAdPodInfo(){return this.pi},getAdSystem:()=>"",getAdvertiserName:()=>"",getApiFramework:()=>null,getCompanionAds:()=>[],getContentType:()=>"",getCreativeAdId:()=>"",getDealId:()=>"",getDescription:()=>"",getDuration:()=>8.5,getHeight:()=>0,getMediaUrl:()=>null,getMinSuggestedDuration:()=>-2,getSkipTimeOffset:()=>-1,getSurveyUrl:()=>null,getTitle:()=>"",getTraffickingParametersString:()=>"",getUiElements:()=>[""],getUniversalAdIdRegistry:()=>"unknown",getUniversalAdIds:()=>[new UniversalAdIdInfo],getUniversalAdIdValue:()=>"unknown",getVastMediaBitrate:()=>0,getVastMediaHeight:()=>0,getVastMediaWidth:()=>0,getWidth:()=>0,getWrapperAdIds:()=>[""],getWrapperAdSystems:()=>[""],getWrapperCreativeIds:()=>[""],isLinear:()=>true,isSkippable(){return true}};const CompanionAd=function(){};CompanionAd.prototype={getAdSlotId:()=>"",getContent:()=>"",getContentType:()=>"",getHeight:()=>1,getWidth:()=>1};const AdError=function(type,code,vast,message,adsRequest,userRequestContext){this.errorCode=code;this.message=message;this.type=type;this.adsRequest=adsRequest;this.userRequestContext=userRequestContext;this.getErrorCode=function(){return this.errorCode};this.getInnerError=function(){return null};this.getMessage=function(){return this.message};this.getType=function(){return this.type};this.getVastErrorCode=function(){return this.vastErrorCode};this.toString=function(){return`AdError ${this.errorCode}: ${this.message}`}};AdError.ErrorCode={};AdError.Type={};const isEngadget=()=>{try{for(const ctx of Object.values(window.vidible._getContexts()))if(ctx.getPlayer()?.div?.innerHTML.includes("www.engadget.com"))return true}catch(e){}return false};const currentAd=isEngadget()?undefined:new Ad;const AdEvent=function(type){this.type=type};AdEvent.prototype={getAd:()=>currentAd,getAdData:()=>{}};AdEvent.Type={AD_BREAK_READY:"adBreakReady",AD_BUFFERING:"adBuffering",AD_CAN_PLAY:"adCanPlay",AD_METADATA:"adMetadata",AD_PROGRESS:"adProgress",ALL_ADS_COMPLETED:"allAdsCompleted",CLICK:"click",COMPLETE:"complete",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",DURATION_CHANGE:"durationChange",EXPANDED_CHANGED:"expandedChanged",FIRST_QUARTILE:"firstQuartile",IMPRESSION:"impression",INTERACTION:"interaction",LINEAR_CHANGE:"linearChange",LINEAR_CHANGED:"linearChanged",LOADED:"loaded",LOG:"log",MIDPOINT:"midpoint",PAUSED:"pause",RESUMED:"resume",SKIPPABLE_STATE_CHANGED:"skippableStateChanged",SKIPPED:"skip",STARTED:"start",THIRD_QUARTILE:"thirdQuartile",USER_CLOSE:"userClose",VIDEO_CLICKED:"videoClicked",VIDEO_ICON_CLICKED:"videoIconClicked",VIEWABLE_IMPRESSION:"viewable_impression",VOLUME_CHANGED:"volumeChange",VOLUME_MUTED:"mute"};const AdErrorEvent=function(error){this.error=error;this.type="adError";this.getError=function(){return this.error};this.getUserRequestContext=function(){if(this.error?.userRequestContext)return this.error.userRequestContext;return{}}};AdErrorEvent.Type={AD_ERROR:"adError"};const CustomContentLoadedEvent=function(){};CustomContentLoadedEvent.Type={CUSTOM_CONTENT_LOADED:"deprecated-event"};const CompanionAdSelectionSettings=function(){};CompanionAdSelectionSettings.CreativeType={ALL:"All",FLASH:"Flash",IMAGE:"Image"};CompanionAdSelectionSettings.ResourceType={ALL:"All",HTML:"Html",IFRAME:"IFrame",STATIC:"Static"};CompanionAdSelectionSettings.SizeCriteria={IGNORE:"IgnoreSize",SELECT_EXACT_MATCH:"SelectExactMatch",SELECT_NEAR_MATCH:"SelectNearMatch"};const AdCuePoints=function(){};AdCuePoints.prototype={getCuePoints:()=>[],getAdIdRegistry:()=>"",getAdIdValue:()=>""};const AdProgressData=noopFunc;Object.assign(ima,{AdCuePoints,AdDisplayContainer,AdError,AdErrorEvent,AdEvent,AdPodInfo,AdProgressData,AdsLoader,AdsManager:manager,AdsManagerLoadedEvent,AdsRenderingSettings,AdsRequest,CompanionAd,CompanionAdSelectionSettings,CustomContentLoadedEvent,gptProxyInstance:{},ImaSdkSettings,OmidAccessMode:{DOMAIN:"domain",FULL:"full",LIMITED:"limited"},OmidVerificationVendor:{1:"OTHER",2:"MOAT",3:"DOUBLEVERIFY",4:"INTEGRAL_AD_SCIENCE",5:"PIXELATE",6:"NIELSEN",7:"COMSCORE",8:"MEETRICS",9:"GOOGLE",OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9},settings:new ImaSdkSettings,UiElements:{AD_ATTRIBUTION:"adAttribution",COUNTDOWN:"countdown"},UniversalAdIdInfo,VERSION,ViewMode:{FULLSCREEN:"fullscreen",NORMAL:"normal"}});if(!window.google)window.google={};if(window.google.ima?.dai)ima.dai=window.google.ima.dai;window.google.ima=ima})(); ! https://github.com/AdguardTeam/AdguardFilters/issues/161181 allnporn.com#%#//scriptlet('prevent-window-open') allnporn.com#%#//scriptlet('abort-on-property-read', 'mmsern')