!
! 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/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.lol#%#//scriptlet('prevent-setTimeout', 'sessionStorage')
! https://github.com/uBlockOrigin/uAssets/issues/23802
seriescultes.store#%#//scriptlet('remove-attr', 'href', 'a[href]#clickfakeplayer')
! https://github.com/uBlockOrigin/uAssets/issues/23689
1jour1film.homes#%#//scriptlet('remove-attr', 'href', 'a[href]#clickfakeplayer')
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.lol#%#//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.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('trusted-create-element', 'body', 'iframe')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.pop', 'undefined')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.direct', 'undefined')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.isAdbActive', 'false')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.directHideAds', 'undefined')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.countpremium.film', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.countpremium.serie', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//scriptlet('set-constant', 'empire.countpremiumaccount.film', '0')
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#%#//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")&&AG_onLoad((function(){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)}));})();
! 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.net#%#//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.net#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
[$path=/iframe_ad]empire-streaming.*#%#//scriptlet('set-constant', 'empire.data', 'emptyArr')
! 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/135943
dl-protect.net,annuaire-telechargement.tel#%#//scriptlet('abort-on-stack-trace', 'document.createEvent', 'Object.trigger')
! 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')
! probably required. Cannot check if AG_onLoad may be replaced by `document.addEventListener("DOMContentLoaded"`
maxisciences.com,gentside.com,femmeactuelle.fr,geo.fr,voici.fr,programme-tv.net,gala.fr,capital.fr#%#AG_onLoad(function(){if(window.pmsCoreAds&&Array.isArray(pmsCoreAds)){window.pmsCoreAds=new Proxy(pmsCoreAds,{set:(a,b,c,d)=>{if("function"==typeof c)try{let a=!1;const b=b=>{var c=document.querySelector(".ads-core-video");c&&a?clearInterval(d):(b(),a=!0)},d=setInterval(b,1e3,c)}catch(a){}return Reflect.set(a,b,c,d)}})}});
! 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/100793
filmstreamy.com#%#//scriptlet("abort-on-property-read", "adsurgeNode")
! https://github.com/AdguardTeam/AdguardFilters/issues/95087
dl-protect.info#%#//scriptlet("prevent-setInterval", "var _0x")
! https://github.com/AdguardTeam/AdguardFilters/issues/91892
zoneseries.stream#%#//scriptlet("adjust-setTimeout", "#regarder", "7000", "0.02")
! https://github.com/easylist/listefr/issues/16
ddl-francais.com#%#//scriptlet('prevent-window-open')
! https://github.com/AdguardTeam/AdguardFilters/issues/76272
11anim.com#%#//scriptlet("abort-on-property-read", "zoneSett")
! https://github.com/AdguardTeam/AdguardFilters/issues/73015
reflectim.fr#%#//scriptlet('set-constant', 'aEteAffiche', 'true')
! 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/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/AdguardTeam/AdguardFilters/issues/182538
empire-streaming.*,empire-anime.com,empire-streamz.fr,empire-stream.net#$#body > iframe:not([src]) { position: absolute !important; left: -3000px !important; }
! 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/137309
empire-streamz.fr,empire-stream.net,empire-streaming.*#$##donation { display: none !important; }
empire-streamz.fr,empire-stream.net,empire-streaming.*#$##msg_ads { display: none !important; }
empire-streamz.fr,empire-stream.net,empire-streaming.*#$#body { overflow: auto !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/91892
vf-serie.org,vf-film.org#$#.TPlayer.on::after { display: none !important; }
vf-serie.org,vf-film.org#$##ads_player_inside { display: none !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/32566
hdstreamvf.com#$#.TPlayer.on::after { display: none!important; }
hdstreamvf.com#$##ads_player_inside { display: none!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/torrents9-cc.30101/
torrents9.cc#$#a[href^="magnet:?"] { width: 100%!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 ------!
!--------------------------------------!
!
! https://github.com/AdguardTeam/AdguardFilters/issues/110232
voirseries.io$$script[src="KGZ1bmN0aW9uKCQsZG9jdW1lbnQp"]
