A
A
artanets12015-12-28 17:20:15
css
artanets1, 2015-12-28 17:20:15

How to create a filter for adblockplus?

I'm trying to remove pop-up ads from the site, tell me how to create a rule correctly.
The site has:
div id="menu"
div id="menubutton"
div id="footer"
as well as an ad that constantly changes its id like this:
div id="MF5IH6au1"
adblockplus creates this rule, but it doesn't work , since the id is different every time.
example.com##DIV[id="MF5IH6au1"]
How can I block such ads, or how can I block everything but let's say div id="menu"?
ps
This is an image hosting. I filled in a test picture , but I don’t know if advertising will pop up along with mine, it constantly pops up on strangers.

spoiler with ad code
<div id="zAIp" a654a2de9edefde08e0a39439fed30094="1" style="z-index: 2147483637 !important; box-sizing: border-box !important; position: fixed !important; right: 20px !important; width: 370px !important; height: 155px !important; padding: 10px 15px 10px 18px !important; box-shadow: rgba(0, 0, 0, 0.14902) 1px 1px 5px, rgba(0, 0, 0, 0.2) 0px 2px 4px !important; border-radius: 3px !important; transition: bottom 0.5s ease !important; bottom: 20px !important; background: rgb(255, 255, 255) !important;"><div style="height: 155px; width: 6px; position: absolute; top: 0px; left: 0px; background: rgb(84, 177, 83);"></div><div style="float: left; height: 135px; margin-right: 20px;"><a href="javascript:" style="display: block; width: 52px; height: 52px; background: url(&quot;data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAnxQTFRF///////+//77/+eM/+WB//78///9//bT/9pK/8YA/+Fy//zw/+N0/8sG/8oD/8kA/+Jz/+2o/9Ee/8gA/8wD/80H/+Jy//bU/9lE/8sB/80D/8wB/80E//zx/+N3/8wH/8wC/8wA/+6p/9pF//79//zy/+N1/9Ed//vu/+Nz/+yj/9Ec//TL/9g9//ro/+Bl/8sD//34/+iP/88R//C3/9Qr/8sC/MkA+8kA/MoA/ssA//rm/91W/8oA/coA/csA/9cA/9oA/s8A/8sA/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Eb9g9569+/bjOXCQZhiGZmiQm5yqFJBNy+Rysg5xh48gvBcW5R09lp+ff/zEyVN6PLp4cDrsJsy2M5yDO3vu/IUC6QXooksQ8Vwq5AMfa4E2/Pb4y1euXrtuu1EAI5NIN+68abdnWFgIiVeBTqPJZGnaGRlRHMb/RNJvFbWJsDy6fcctkhMMTMWCLIgIC5HZ43WJIinBwHq3xFUqkBIJ3Lvv8jWDMtGrSjBwPnj4DwhloruoVIU4MXj0uAngp9vlF56UVzyFUQgGz55XyiAYryqvKIQIwcgEA766yu8TBBz3B+M8QjxknVEI4mtqJSDFvS+Kq0Pi4QShl3U+t+iT4q9evwmPhxIe1b/1N/jd3tp3jVHiSoJQfd37hpIPnkZT9LhMmn77Hz95Kz01ZvW4TD4H/vi+fPVUmFGrcZnk0nqMvlmJ4jL5/oNOCnxJSOIyAT9//dYa2jB//gJTX74fybd/FQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNS0xMi0xOFQxMzowNToxOCswMzowMP+KZl8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTUtMTItMThUMTM6MDU6MTgrMDM6MDCO197jAAAAAElFTkSuQmCC&quot;) 50% 50% no-repeat rgb(184, 184, 184);"></a></div><a href="javascript:" style="float: left; font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif; font-weight: 700; color: rgb(51, 51, 51); font-size: 14px; text-decoration: none;">Программа для заработка!</a><p a654a2de9edefde08e0a39439fed30094="1" style="margin: 22px 0px 0px; line-height: 16px; max-height: 68px; overflow: hidden;"><a style="font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif; font-weight: 400; font-size: 13px; color: rgb(102, 102, 102); text-decoration: none;">300 рублей каждый час на свой Яндекс кошелек. </a></p><div style="position: absolute; bottom: 10px; right: 15px;"><a href="javascript:" style="float: right; font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif; font-weight: 700; font-size: 12px; color: rgb(255, 255, 255); text-decoration: none; text-transform: uppercase; height: 30px; line-height: 30px; padding: 0px 7px; border-radius: 2px; box-shadow: rgba(0, 0, 0, 0.156863) 1px 1px 3px 0px, rgba(0, 0, 0, 0.117647) 1px 1px 6px 0px; background: rgb(84, 177, 83);">ответить</a><a href="javascript:" style="float: right; margin-right: 10px; font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif; font-weight: 700; font-size: 12px; color: rgb(51, 51, 51); text-decoration: none; height: 30px; line-height: 30px; padding: 0px 7px;">скрыть</a></div></div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artanets1, 2015-12-28
@artanets1

The issue was resolved easier by disabling java for specific sites in chrome.
But I'll be grateful early if someone tells me a solution with adblockplus, for general development.

M
Maxim Nevzorov, 2016-02-11
@fixator10

Creating Filters for ABP
I.e. you could try blocking by size, or look for CSS selectors to exclude everything except the div id="menu" as suggested.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question