How to write filter for specific page?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Echo
Posts: 1
Joined: Sat Apr 18, 2015 11:15 pm

How to write filter for specific page?

Post by Echo »

This works:
site.com#div(id=reallylonggenericid)

This doesn't:
site.com/User.aspx#div(id=reallylonggenericid)

How can I block it specifically on site.com/User.aspx? And it has to be that exactly, because I don't want it blocked on site.com/User.aspx?id=123456 -- only on site.com/User.aspx.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to write filter for specific page?

Post by mapx »

if we are talking about hiding filters (filters created for inline elements, html elements):

"Due to the way how element hiding is implemented, you really can only limit it to full domain names."

from en/filters#elemhide_domains

This means you can use only the first form:
site.com#div(id=reallylonggenericid)
or
site.com###reallylonggenericid

The blocking filters can be written for any part of a web address.
||example.com/folder1/folder2/abc$script
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: How to write filter for specific page?

Post by lewisje »

Also, the OP is a real blast from the past, using the long-deprecated "simplified element-hiding syntax" that I thought would have been removed by now.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Locked