!
! This section contains the list of ad blocking rules that fall under "advanced" category.
! By advanced we mean the following rule types: CSS, scriptlets, HTML filtering (`$$` marker), JS.
!
! Good: example.org#$##rek { display: none !important; }; example.org#%#//scriptlet('set-cookie', 'ad', '0'); example.org$$script[tag-content="ad"][max-length="3000"].
! Bad: example.org###rek (should be in specific.txt)
!
!--------------------------------------!
!------- JS rules ---------------------!
!--------------------------------------!
!
! https://github.com/AdguardTeam/AdguardFilters/issues/217971
! Fixes video player - required when DNS filtering is used
! TODO: use scriptlet when it's available - https://github.com/AdguardTeam/Scriptlets/issues/173
! "adjust-setInterval" is required to fix delay in video playback start
tf1info.fr#%#//scriptlet('adjust-setInterval', 'defaultConsentString', '*', '0.001')
!+ NOT_PLATFORM(ext_ff)
tf1info.fr#%#(()=>{const e=function(){};window.tC={privacy:{getOptinCategories:e,cookieData:[]},addConsentChangeListener:e,removeConsentChangeListener:e,container:{reload:e}},window.tc_events_global=e})();
!+ PLATFORM(ext_ff)
tf1info.fr#%#//scriptlet('trusted-create-element', 'head', 'script', '', '(()=>{const e=function(){};window.tC={privacy:{getOptinCategories:e,cookieData:[]},addConsentChangeListener:e,removeConsentChangeListener:e,container:{reload:e}},window.tc_events_global=e})();')
! https://github.com/AdguardTeam/AdguardFilters/issues/213146
! Fixes loading video player and delay in video playback start
! Apps cannot inject script into iframe with "about:blank" src, so a workaround is required
!#if (adguard_app_windows || adguard_app_mac || adguard_app_android || adguard_app_cli)
supersoluce.com#%#(()=>{window.addEventListener("load",(()=>{document.querySelector(".vsly-player")&&(()=>{const e=document.createElement("script");e.id="xieg6Sie",e.src="https://cdn.viously.com/js/sdk/boot.js",document.head.appendChild(e)})()}));})();
supersoluce.com#%#(()=>{const e={apply:(e,t,o)=>{try{const e=o[0],t=o[1];"function"==typeof e&&e.toString().includes("event_listener_timeout")&&0!==t&&(o[1]=0)}catch(e){console.trace(e)}return Reflect.apply(e,t,o)}};window.setTimeout=new Proxy(window.setTimeout,e);const t={apply:(e,t,o)=>{try{const e=t;if(e&&e.matches?.(".viously")){const e=t.querySelector("iframe");e&&e.matches?.(".viously-iframe")&&(e.contentWindow.setTimeout=window.setTimeout)}}catch(e){console.trace(e)}return Reflect.apply(e,t,o)}};window.Node.prototype.appendChild=new Proxy(window.Node.prototype.appendChild,t)})();
!#endif
!+ NOT_PLATFORM(windows, mac, android, cli)
supersoluce.com#%#//scriptlet('adjust-setTimeout', 'event_listener_timeout', '*', '0.001')
!#if (adguard_ext_safari || adguard_app_ios || adguard_ext_android_cb || adguard_ext_chromium || adguard_ext_chromium_mv3)
@@||flashb.id/universal/*.js$domain=supersoluce.com
@@||flashb.id/assets/js/hbdbrk_*_m.js$domain=supersoluce.com
@@||srv.flashb.id/cfg/$domain=supersoluce.com
!#endif
!+ PLATFORM(ext_ff)
supersoluce.com#%#//scriptlet('trusted-create-element', 'head', 'script', '', '(()=>{window.addEventListener("load",(()=>{document.querySelector(".vsly-player")&&(()=>{const e=document.createElement("script");e.id="xieg6Sie",e.src="https://cdn.viously.com/js/sdk/boot.js",document.head.appendChild(e)})()}));})();')
! https://github.com/AdguardTeam/AdguardFilters/issues/191055
! Fix video player loading delay
marieclaire.fr#%#//scriptlet('adjust-setTimeout', '/userConsentProcess|this===/', '*', '0.001')
! https://github.com/AdguardTeam/AdguardFilters/issues/186121
1jour1film.cyou#%#//scriptlet('remove-attr', 'href', 'a[href]#clickfakeplayer')
! https://github.com/AdguardTeam/AdguardFilters/issues/181954
sudouest.fr#%#//scriptlet('adjust-setTimeout', 'return t()', '*', '0.001')
! https://github.com/uBlockOrigin/uAssets/issues/23806
japscan.*#%#//scriptlet('prevent-setTimeout', 'sessionStorage')
! https://github.com/uBlockOrigin/uAssets/issues/23689
player.melaniezettofrais.online#%#//scriptlet('prevent-addEventListener', 'click', 'Popup')
! https://github.com/AdguardTeam/AdguardFilters/issues/178842
cinemaclock.com#%#//scriptlet('trusted-set-constant', 'PreRollBannerId', 'undefined')
! https://github.com/AdguardTeam/AdguardFilters/issues/177510
justarrived.lu#%#//scriptlet('set-constant', 'advanced_ads_ready', 'noopFunc')
! https://github.com/AdguardTeam/AdguardFilters/issues/172432
magicmaman.com#%#//scriptlet('adjust-setTimeout', 'userConsentProcessEnded', '*', '0.001')
! https://github.com/uBlockOrigin/uAssets/issues/22307
japscan.*#%#//scriptlet('prevent-window-open')
! https://github.com/AdguardTeam/AdguardFilters/issues/170646
jeune-gay.fr#%#//scriptlet('prevent-setTimeout', 'randno', '25')
jeune-gay.fr#%#//scriptlet('set-cookie', 'p_view', 'true')
! https://github.com/AdguardTeam/AdguardFilters/issues/164927
occasions.decathlon.fr#%#//scriptlet('set-constant', 'FastClick', 'noopFunc')
occasions.decathlon.fr#%#//scriptlet('set-constant', 'FastClick.attach', 'noopFunc')
! https://github.com/AdguardTeam/AdguardFilters/issues/185148
! https://github.com/AdguardTeam/AdguardFilters/issues/157906
! lessentiel.lu, 20min.ch - fixes video player
lessentiel.lu,20min.ch#%#//scriptlet('adjust-setTimeout', 'setTimeoutIds_', '*', '0.001')
lessentiel.lu,20min.ch#%#(()=>{window.TATM=window.TATM||{},TATM.init=()=>{},TATM.initAdUnits=()=>{},TATM.pageReady=()=>{},TATM.getVast=function(n){return new Promise((n=>{n()}))},TATM.push=function(n){if("function"==typeof n)try{n()}catch(n){console.debug(n)}};})();
! https://github.com/AdguardTeam/AdguardFilters/issues/182538
empire-streaming.*#%#//scriptlet('remove-attr', 'href', '.content-propose > a[href].btn-ad-iframe')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('trusted-create-element', 'body', 'iframe')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.isAdbActive', 'false')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.directHideAds', 'undefined')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremium.film', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremium.serie', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremiumMore.film.count', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremiumMore.serie.count', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremiumaccount.film', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#%#//scriptlet('set-constant', 'empire.countpremiumaccount.serie', '0')
! empire-anime.com
empire-streaming.*,empire-anime.com#%#//scriptlet('set-constant', 'empire.mediaData.advisorDirect', '')
empire-streaming.*,empire-anime.com#%#//scriptlet('set-constant', 'empire.mediaData.advisorMovie', '1')
empire-streaming.*,empire-anime.com#%#//scriptlet('set-constant', 'empire.mediaData.advisorSerie', '1')
! It's required to load video player because website uses "visibilitychange" event to detect if popup has been opened and then check if "document.hidden" is changed,
! and after that loads video player
! Rule below adds "click" event listener to the button that opens the popup and then dispatches "visibilitychange" event to the top document,
! and then changes "document.hidden" to "true" and then back to "false" after 100ms
! TODO: maybe find a better way to change "document.hidden" value
empire-anime.com#%#(()=>{document.location.href.includes("/pop_advisor")&&window.addEventListener("load",()=>{const e=new CustomEvent("visibilitychange"),t=t=>{Object.defineProperty(t.view.top.document,"hidden",{value:!0,writable:!0}),t.view.top.document.dispatchEvent(e),setTimeout((()=>{Object.defineProperty(t.view.top.document,"hidden",{value:!1,writable:!0}),t.view.top.document.dispatchEvent(e)}),100)},n=document.querySelector("button.btn-continu");n&&n.addEventListener("click",t)});})();
empire-streaming.*#%#(()=>{document.location.href.includes("/iframe_ad")&&window.addEventListener("load",(()=>{const e=new CustomEvent("visibilitychange"),t=()=>{Object.defineProperty(document,"hidden",{value:!0,writable:!0}),document.dispatchEvent(e),setTimeout((()=>{Object.defineProperty(document,"hidden",{value:!1,writable:!0}),document.dispatchEvent(e)}),100)},n=document.querySelector("a.btn-ad-iframe");n&&n.addEventListener("click",t)}));})();
! https://github.com/uBlockOrigin/uAssets/issues/19339
e-player-stream.*#%#//scriptlet('set-constant', 'adsConfig', 'emptyArr')
empire-anime.com,empire-streamz.fr,empire-streaming.*,empire-stream.*#%#//scriptlet('prevent-window-open')
! https://github.com/uBlockOrigin/uAssets/issues/18840#issuecomment-1623546469
e-player-stream.app#%#//scriptlet('set-constant', 'isSetupAccess', 'true')
! https://github.com/AdguardTeam/AdguardFilters/issues/153795
[$path=/iframe_ad]empire-anime.com#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
[$path=/iframe_ad]empire-streamz.fr#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
[$path=/iframe_ad]empire-stream.*#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
[$path=/iframe_ad]empire-streaming.*#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
! https://github.com/AdguardTeam/AdguardFilters/issues/182538
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.*#$#body > iframe:not([src]) { position: absolute !important; left: -3000px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/137309
empire-streamz.fr,empire-stream.*,empire-streaming.*#$##donation { display: none !important; }
empire-streamz.fr,empire-stream.*,empire-streaming.*#$##msg_ads { display: none !important; }
empire-streamz.fr,empire-stream.*,empire-streaming.*#$#body { overflow: auto !important; }
!
! https://github.com/AdguardTeam/AdguardFilters/issues/153700
! Fixes delay in the video player
cosmopolitan.fr#%#//scriptlet('adjust-setTimeout', '/userConsentProcessEnded|\[0\]\+"With"/', '*', '0.001')
! https://github.com/AdguardTeam/AdguardFilters/issues/145800
macg.co#%#//scriptlet('prevent-addEventListener', 'DOMContentLoaded', 'interstitial')
! https://github.com/AdguardTeam/AdguardFilters/issues/138351
lexpress.fr#%#//scriptlet('set-cookie', 'q_pop_noel', 'true')
! https://github.com/AdguardTeam/AdguardFilters/issues/125733
japscan.me#%#//scriptlet("abort-current-inline-script", "JSON.parse", "document.createElement('script')")
japscan.me#%#//scriptlet("abort-current-inline-script", "document.createElement", "document.documentElement).appendChild")
! https://github.com/AdguardTeam/AdguardFilters/issues/170996
! https://github.com/AdguardTeam/AdguardFilters/issues/159695
! https://github.com/AdguardTeam/AdguardFilters/issues/119411
maxisciences.com,gentside.com,femmeactuelle.fr,geo.fr,voici.fr,programme-tv.net,gala.fr,capital.fr#%#//scriptlet('set-constant', 'Object.prototype.withAds', 'false')
! allocine.fr - fixing delay in the video player
allocine.fr#%#//scriptlet("set-constant", "AC.config.ads", "emptyObj")
! https://github.com/AdguardTeam/AdguardFilters/issues/118970
funradio.fr,rtl2.fr,rtl.fr#%#//scriptlet("set-constant", "getAudioAdUrl", "noopFunc")
! https://github.com/AdguardTeam/AdguardFilters/issues/174692
! https://github.com/AdguardTeam/AdguardFilters/issues/146471
le10sport.com,ozap.com#%#(function(){var a={cmd:[],public:{getVideoAdUrl:function(){},createNewPosition:function(){},refreshAds:function(){},setTargetingOnPosition:function(){},getDailymotionAdsParamsForScript:function(c,a){if("function"==typeof a)try{if(1===a.length){a({})}}catch(a){}}}};a.cmd.push=function(b){let a=function(){try{"function"==typeof b&&b()}catch(a){}};"complete"===document.readyState?a():window.addEventListener("load",()=>{a()})},window.jad=a})();
! https://github.com/AdguardTeam/AdguardFilters/issues/116378
! Fixing delay in the video player
purepeople.com#%#(function(){var a={cmd:[],public:{getVideoAdUrl:function(){},createNewPosition:function(){},refreshAds:function(){},setTargetingOnPosition:function(){},getDailymotionAdsParamsForScript:function(c,a){if("function"==typeof a)try{if(1===a.length){a({})}}catch(a){}}}};a.cmd.push=function(b){let a=function(){try{"function"==typeof b&&b()}catch(a){}};"complete"===document.readyState?a():window.addEventListener("load",()=>{a()})},window.jad=a})();
! https://github.com/AdguardTeam/AdguardFilters/issues/112961
seriepourvous.com#%#//scriptlet("remove-attr", "href", "a[href]#clickfakeplayer")
! https://github.com/AdguardTeam/AdguardFilters/issues/105459
mapcustomizer.com#%#//scriptlet('remove-class', 'with-ad', 'div')
! https://github.com/AdguardTeam/AdguardFilters/issues/76272
11anim.com#%#//scriptlet("abort-on-property-read", "zoneSett")
! https://github.com/AdguardTeam/AdguardFilters/issues/72800
e-sushi.fr#%#//scriptlet('set-constant', 'aEteAffiche', 'true')
! https://github.com/AdguardTeam/AdguardFilters/issues/68512
monpetitforfait.com#%#//scriptlet('set-cookie', 'mpf_popup_desktop', 'true')
! https://github.com/AdguardTeam/AdguardFilters/issues/64216
basketusa.com#%#//scriptlet("abort-on-property-read", "__yget_ad_list")
! https://github.com/AdguardTeam/AdguardFilters/issues/43099
lindependant.fr#%#//scriptlet("abort-on-property-read", "_adb")
! https://github.com/AdguardTeam/AdguardFilters/issues/30968
actu17.fr#%#//scriptlet("abort-on-property-write", "td_ad_background_click_link")
! https://github.com/AdguardTeam/AdguardFilters/issues/13192
jacquieetmicheltv.net#%#var _st = window.setTimeout; window.setTimeout = function(a, b) { if(!/target_url/.test(a)){ _st(a,b);}};
!
! French-language official catch-up TV web apps
!
! https://github.com/AdguardTeam/AdguardFilters/issues/224926
prod-player.tf1.fr#%#//scriptlet('set-constant', 'Object.prototype.sendPauseMidrollTracking', 'noopFunc')
! https://github.com/AdguardTeam/AdguardFilters/issues/83543
canalplus.com#%#//scriptlet('set-constant', '__data.application.settings.featPlayerAds', 'false')
! https://github.com/AdguardTeam/AdguardFilters/issues/123526
canalplus.com#%#//scriptlet('json-prune', 'ads.*.default ads.*.url ads.enableMidrolls', 'ads')
! https://github.com/AdguardTeam/AdguardFilters/issues/143831
m6.fr#%#(function(){let callCounter=0;const nativeJSONParse=JSON.parse;const handler={apply(){callCounter++;const obj=Reflect.apply(...arguments);if(callCounter<=10){if(obj.hasOwnProperty("appName")){if(obj.applaunch?.data?.player?.features?.ad?.enabled){obj.applaunch.data.player.features.ad.enabled=false}if(obj.applaunch?.data?.player?.features?.ad?.dai?.enabled){obj.applaunch.data.player.features.ad.dai.enabled=false}}}else{JSON.parse=nativeJSONParse}return obj}};JSON.parse=new Proxy(JSON.parse,handler)})();
! https://github.com/AdguardTeam/AdguardFilters/issues/103930
rtlplay.be#%#//scriptlet('json-prune', 'applaunch.data.player.features.ad.enabled applaunch.data.player.features.ad.dai.enabled', 'appName')
! https://github.com/AdguardTeam/AdguardFilters/issues/143831
! https://github.com/AdguardTeam/AdguardFilters/issues/100525
! https://gist.github.com/ameshkov/265f353a816110e8b9d5fc37ad66c31a
prod-player.tf1.fr#%#(function(){let callCounter=0;const nativeJSONParse=JSON.parse;const handler={apply(){callCounter++;const obj=Reflect.apply(...arguments);if(callCounter<=10){if(obj.hasOwnProperty('env')&&obj.env.hasOwnProperty('origin')){if(!obj.hasOwnProperty('ads')){obj.ads={};}obj.ads.enable=false;obj.ads._prerolls=false;obj.ads._midrolls=false;}}else{JSON.parse=nativeJSONParse;}return obj;}};JSON.parse=new Proxy(JSON.parse,handler);})();
m6.fr,tf1.fr#%#//scriptlet('set-constant', 'tv.freewheel.SDK.Util.pingURLWithForm', 'trueFunc')
m6.fr,tf1.fr#%#//scriptlet('set-constant', 'tv.freewheel.SDK.Util.pingURLWithImage', 'trueFunc')
m6.fr,tf1.fr#%#//scriptlet('set-constant', 'tv.freewheel.SDK.Util.pingURLWithScript', 'trueFunc')
m6.fr,tf1.fr#%#//scriptlet('set-constant', 'tv.freewheel.SDK.Util.pingURLWithXMLHTTPRequest', 'trueFunc')
m6.fr,tf1.fr#%#//scriptlet('set-constant', 'tv.freewheel.SDK.Util.sendAdRequestWithXMLHTTPRequest', 'trueFunc')
tf1info.fr#%#//scriptlet('set-constant', '__NEXT_DATA__.runtimeConfig.playerTF1.ads.enable', 'false')
!
!--------------------------------------!
!------- CSS fixes --------------------!
!--------------------------------------!
!
! https://github.com/uBlockOrigin/uAssets/issues/22958
rustica.fr#$#@media (min-width: 992px) { html > body.hasHabillage { padding-top: 0 !important; } }
! https://github.com/AdguardTeam/AdguardFilters/issues/172925
deco.fr,fourchette-et-bikini.fr#$#.site_content { margin-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/171681
caminteresse.fr#$#.sticky-wrapper { height: auto !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/170093
linternaute.com,journaldunet.com#$#@media (min-width: 1024px) { html > body .layout--offcanvas:not(#style_important) { top: 100px !important; } }
! systemed.fr - blank space at the top
systemed.fr#$#html >body.hasHabillage { padding-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/166761
ooparc.com#$##advert-bg-top { visibility: hidden !important; height: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/154929
letemps.ch#$#.topad { min-height: 0 !important; height: 0 !important; padding: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/143751
iadfrance.fr#$#html.async-hide { opacity: 1 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/142470
numerama.com#$#.is-remaining-chicken { position: absolute !important; left: -9999px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/139469
amomama.fr#$#header { top: 0 !important; }
amomama.fr#$#.nb { padding-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/139744
dna.fr#$#body.ContentDetailComponent #p6GalleryWrapper.showed { display: none !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/127367
journaldesfemmes.fr#$#@media (min-width: 768px) { body .layout.layout--offcanvas:not(#style_important) { margin-top: -200px !important; } }
! https://github.com/AdguardTeam/AdguardFilters/issues/118970
funradio.fr,rtl2.fr,rtl.fr#$#body .container-ads + *:not(#style_important) { padding-top: 0 !important; }
funradio.fr,rtl2.fr,rtl.fr#$#body .container-ads + .tranche:not(#style_important) { padding-top: 50px !important; }
funradio.fr,rtl2.fr,rtl.fr#$#body .container-ads + .header-ariane:not(#style_important) { padding-top: 0 !important; }
funradio.fr,rtl2.fr,rtl.fr#$#body .container-ads ~ .tranche.section-article:not(#style_important) { padding-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/118024
parlons-basket.com#$#html > body:not(#style_important) { margin-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/116245
europe1.fr#$#.header-space { height: 10px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/110907
ouest-france.fr#$#.main { margin-top: 10px!important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/96839
cnews.fr#$##wrapper-publicite { padding-top: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/92958
forumgaming.fr,forumactif.com#$##page-body div[style*="visibility: visible !important; display: block !important; opacity:"]:not([class]):not([id]) { position: absolute !important; left: -3000px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/76814
forum-airguns.com#$#.three-col tr > td > div[style*="visibility: visible !important; display: block !important; opacity:"]:not([class]):not([id]) { position: absolute !important; left: -3000px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/74493
neogeo-system.com#$#.inner > div[style*="visibility: visible !important; display: block !important; opacity:"]:not([class]):not([id]) { position: absolute !important; left: -3000px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/74492
ddaynormandy.forumgaming.fr#$##main-content > div[style*="visibility: visible !important; display: block !important; opacity:"]:not([class]):not([id]) { position: absolute !important; left: -3000px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/68511
journaldunet.com#$##jSidebarSticky { min-height: 0 !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/68512
monpetitforfait.com#$#body > #main[style^="margin-top:"] { margin-top: 10px !important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/30968
actu17.fr#$#body.td-ad-background-link { cursor: auto!important; }
! https://forum.adguard.com/index.php?threads/www-malekal-com.29657/
malekal.com#$#.adsbygoogle { height: 1px!important; visibility:hidden!important; }
! https://forum.adguard.com/index.php?threads/18388/
cityplug.be#$#.preview-tabs-controls li { height: auto!important; }
! https://github.com/AdguardTeam/AdguardFilters/issues/2947
igen.fr#$##motherboard { top: 30px!important; }
!
!--------------------------------------!
!------- Content filtering rules ------!
!--------------------------------------!
!
