Hide div class with variable arguments
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Hide div class with variable arguments
Hi.
I want to block some blocks on the Yandex's mail service site like:
mail.yandex.ru##DIV.ns-view-folders.ns-view-id-??????????.mail-NestedList.??????????.mail-FolderList.js-folders.ns-view-container-desc
Expression is composed by the Adblock helper. Helper adds unique strings like:
mail.yandex.ru##DIV.ns-view-folders.ns-view-id-2965564617.mail-NestedList.30fnw83ugeb.mail-FolderList.js-folders.ns-view-container-desc
How to make an universal rule, so the rule could work for EVERY occasion? Because the Helpers' string block only one occassion.
Thanks.
I want to block some blocks on the Yandex's mail service site like:
mail.yandex.ru##DIV.ns-view-folders.ns-view-id-??????????.mail-NestedList.??????????.mail-FolderList.js-folders.ns-view-container-desc
Expression is composed by the Adblock helper. Helper adds unique strings like:
mail.yandex.ru##DIV.ns-view-folders.ns-view-id-2965564617.mail-NestedList.30fnw83ugeb.mail-FolderList.js-folders.ns-view-container-desc
How to make an universal rule, so the rule could work for EVERY occasion? Because the Helpers' string block only one occassion.
Thanks.
Re: Hide div class with variable arguments
for example hiding
mail.yandex.ru##.promo-text.promo-text_main
can be done (guessing there are random parts in that class name) using:
mail.yandex.ru##DIV [class^="promo"][class$="main"]
(^ indicating the first part, $ indicating the last part)
see en/filters#elemhide_attributes
mail.yandex.ru##.promo-text.promo-text_main
can be done (guessing there are random parts in that class name) using:
mail.yandex.ru##DIV [class^="promo"][class$="main"]
(^ indicating the first part, $ indicating the last part)
see en/filters#elemhide_attributes
Re: Hide div class with variable arguments
test
Code: Select all
mail.yandex.ru##div[class*="ns-view-folders ns-view-id- mail-NestedList mail-FolderList js-folders ns-view-container-desc"]
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Re: Hide div class with variable arguments
I've already seen this tutorial. I've tried mail.yandex.ru##DIV[title^="ns-view-folders"] [title$="ns-view-container-desc"] - no use.mapx wrote:for example hiding
mail.yandex.ru##.promo-text.promo-text_main
can be done (guessing there are random parts in that class name) using:
mail.yandex.ru##DIV [class^="promo"][class$="main"]
(^ indicating the first part, $ indicating the last part)
see en/filters#elemhide_attributes
No use either.smed79 wrote:testCode: Select all
mail.yandex.ru##div[class*="ns-view-folders ns-view-id- mail-NestedList mail-FolderList js-folders ns-view-container-desc"]
Also, intersting thing: after I load the page - no banners but if I change the tab and return they pop up again. Also - there is zero "hit" statistics in filter settings
Re: Hide div class with variable arguments
title ?
try
try
Code: Select all
mail.yandex.ru##DIV[class^="ns-view-folders"][class$="ns-view-container-desc"]
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Re: Hide div class with variable arguments
Right, "class"
But still it doesn't work. Hit counter doesn't react and banners re-appear if I switch between this tab with another.
But still it doesn't work. Hit counter doesn't react and banners re-appear if I switch between this tab with another.
Re: Hide div class with variable arguments
I removed a space in the middle, could you try again (take again the filter above) ?
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Re: Hide div class with variable arguments
Gotcha! It works and the hit counter switched to "1". Looks like it was because of the spaces.mapx wrote:I removed a space in the middle, could you try again (take again the filter above) ?
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Re: in lieu of ubo, ehh
Helper hids only one occasion. The problem calss contains variables (e.g. numbers, characters) which changes every page refresh.
-
- Posts: 6
- Joined: Sun Jan 08, 2017 6:46 pm
Re: Hide div class with variable arguments
Back to start. They've changed something and the rule doesnt' work now.
Now the problem line is <div class="ns-view-xkzxmucy ns-view-id-139" data-key="view=xkzxmucy"> . Where bold characters change every page refresh.
Also page contains other ns-view classes, co I can't use simple mail.yandex.ru##DIV[class^="ns-view"]
Now the problem line is <div class="ns-view-xkzxmucy ns-view-id-139" data-key="view=xkzxmucy"> . Where bold characters change every page refresh.
Also page contains other ns-view classes, co I can't use simple mail.yandex.ru##DIV[class^="ns-view"]
Re: Hide div class with variable arguments
just report at ruadlist forum:
https://forums.lanik.us/viewforum.php?f=102
They can test your issue and provide useful filters / hints.
https://forums.lanik.us/viewforum.php?f=102
They can test your issue and provide useful filters / hints.