hide an element on a specific page URL

Various discussions related to filter list maintenance

Moderator: njones

hide an element on a specific page URL

Postby baptx » Tue Jun 12, 2018 7:49 pm

Hello,

Any idea why a custom filter like example.com/*/partOfURL/*##.someClass does not work?
How can we hide an element using a simple regular expression like this on the URL?
A filter like example.com/path##.someClass does not even work but example.com##.someClass works.

I could do it with Greasemonkey addon using JavaScript but an easier solution would be better.

PS: can you to disable the restriction "Information: Sorry, we don't like spammers here." when we want to post with our regular VPN? I am not a spammer so this information seems offending. A captcha or email confirmation could block spammers and prevent this censorship.

Thanks.
baptx
 
Posts: 3
Joined: Tue Jun 12, 2018 7:09 pm

Re: hide an element on a specific page URL

Postby mapx » Tue Jun 12, 2018 8:18 pm

https://adblockplus.org/en/filters#elemhide_domains

Note: Due to the way how element hiding is implemented, you really can only limit it to full domain names. You cannot use any other part of the address and you cannot use domain as a replacement for domain.example,domain.test.


Provide the real example, what do you want to hide (only on some specific page !?)
User avatar
mapx
 
Posts: 21677
Joined: Thu Jan 06, 2011 3:01 pm

Re: hide an element on a specific page URL

Postby baptx » Tue Jun 12, 2018 10:14 pm

@mapx Thanks for your reply, so it is not possible with an addon like AdBlockPlus and I guess I will have to use Greasemonkey if I want to hide an element on a specific page URL.
I don't have an example to share since it was a private page but using a simple filter like example.com##.someClass was not enough in my case because the element was hidden on every page and I wanted it hidden on one page only. I also checked if the page could be hidden with a distinct selector but I did not find one.
Do you think the feature to hide an element on a specific page URL could be added in a future version? I am not the first one interested in this feature (https://superuser.com/questions/1272205 ... block-plus).
baptx
 
Posts: 3
Joined: Tue Jun 12, 2018 7:09 pm

Re: hide an element on a specific page URL

Postby mapx » Tue Jun 12, 2018 10:30 pm

Did you also try the extended hiding filters ? (looking for something specific on that page)
https://adblockplus.org/en/filters#elemhide-emulation
User avatar
mapx
 
Posts: 21677
Joined: Thu Jan 06, 2011 3:01 pm

Re: hide an element on a specific page URL

Postby baptx » Wed Jun 13, 2018 6:55 pm

@mapx I checked this but it looks like sometimes the only way to hide an element on a specific page is to have a filter based on the URL.
baptx
 
Posts: 3
Joined: Tue Jun 12, 2018 7:09 pm


Return to Filter List Authors' Corner

Who is online

Users browsing this forum: No registered users and 1 guest