Background image

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

Background image

Post by Kevil »

How to block the background image at

Code: Select all

https://praha.idnes.cz/byvala-nemocnice-jilove-u-prahy-prodej-dhx-/praha-zpravy.aspx?c=A171108_133001_praha-zpravy_mav
html code:

Code: Select all

<script language="JavaScript">
New Ads.Standardflash({ "link": "https://praha.idnes.cz/nyBXIkfGhT9-_LQl-ti_kxOB2Ty9ytIHwcYhfyfg-m/rYwJcY506F6b7kVU6JdfzVAY4_8gwnmlE5oCjlgYLaSa_2V/oKUxtiqQV29JXlxlQ_-hiyegiJEIDFnm7Sa-NxihILjnr/NlS1,JCLmcohxBOsivCJszxvlCRjKeA530ptxvlEI/A9edFlA7jy_EjjToVzF0pSXKS9L9Yx8Hlx50Emv0X/l-14kv0Hqm_lLGTd7Hg/1bJ_UM/dEagP4Rw111,EZPA1Pb3tAny", "obrazek": "https://praha.idnes.cz/nyV9vZE6jzgsy0zn9JRdHV8yDcvfTnxp9f5SlPEnojC/xl0BMG9i.zvRT4yo0gg2joMl,63SGJw/5fA0d41,vTce7nFDRsGhcaioX8GZHPHTg0bKbmXFFSso-D-s6Qny ", "rozmery": [998,200], "transparentní": false}); Ads.Branding({ "link ": "https://praha.idnes.cz/nyBXIkfGhT9-_LQl-ti_kxOB2Ty9ytIH/wcYhfyfg-mrYwJcY506F6b7kVU6JdfzVA/Y4_8gwnmlE5oCjlgYLaSa_2V/oKUxtiqQV29JXlxlQ_-hiyegiJEIDFnm7Sa-NxihILjnr/NlS1,JCLmcohx80sivCJszxvlCR/jKeA530ptxvlEIA9edF1A7jy_Ejj/ToVzF0pSXKS9L9Yx8Hlx50Emv0Xl-14kv0Hqm_lLGTd7HgMbJ_U/MdEagP4Rw111,EZPA1Pb3tAny", "target": "_blank", "body": "https://praha.idnes.cz/nyFTpjZGgE23Vxeylkwsvvi0hqscjrXiI/Z3qqsmubshAn8Gzse2t4eza_g6y/Scdt4\.iUDG8-fZ-E4xaQSpylmTZXsusjFmrAxkbZDdrp/mLUTnycentrumpraha_black-friday_branding_2000x1200_cz--final--0A02021200.jpg", "double-board": true_, "fixni-main": false, "fixni-body": false });
</script>
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Background image

Post by mapx »

ABP is not able to manage the inline scripts for the moment. uBo (ublock origin) has already included filters for such crap.
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

Re: Background image

Post by Kevil »

Thank you for advice. I installed uBo but how to set it up to block this background image ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Background image

Post by mapx »

Hmm. It seems they changed something, not working anymore. Stay tuned.
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

Re: Background image

Post by Kevil »

Any idea how to block external script Ads.StandardFlash in the code above ? The Firefox should not call it.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Background image

Post by mapx »

The code is very nasty, that piece is inside some script code with random names

in uBo you could try

Code: Select all

praha.idnes.cz##script:inject(noeval.js)
However you should continue at the czech list repository:
https://github.com/tomasko126/easylistc ... vak/issues
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

Re: Background image

Post by Kevil »

Solved by installing Add-ons for Firefox Stylish and adding a filter:

Code: Select all

body { background-image: none !important; }
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

Re: Background image

Post by Kevil »

Better to use uBO:

Code: Select all

idnes.cz##html,body:style(background-image:none !important)
Post Reply