Block specific Image-Path

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Merion

Block specific Image-Path

Post by Merion »

Hi!

Example image path to block:
http://64.thumbs.website.com/64x96/hhfhfhhh333.jpg

Example image path NOT to block:
http://128.thumbs.website.com/128x192/0 ... defec9.jpg

The numbers (64, 64x94) are random from 0 to 288.

I wrote the following filter, but it doesnt work:
http://*.thumbs.website.com/[0-288]x[0-288]/[A-Za-z0-9]*.jpg

Where's the bug?
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: Block specific Image-Path

Post by Ares2 »

You are trying to use a regular expression, those have to be enclosed in forward slashes (like /myregex/ ). Furthermore, you are trying to use a regular expression without knowing how exactly they work. :wink: You should probably take a look at: https://developer.mozilla.org/en/Core_J ... on_Pattern

Maybe this is what you are looking for?

Code: Select all

/\.thumbs\.website\.com\/[0-9]{1,3}x[0-9]{1,3}\/[A-Za-z0-9]+\.jpg/
Merion

Re: Block specific Image-Path

Post by Merion »

okay thanks, it works!!

other question:

can i block a element, when the div style-tag contains the regexp above?

the documentation says, that regexp in element-filtering is not possible.

is there any other possibility to block these elements?
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: Block specific Image-Path

Post by Ares2 »

Merion wrote:the documentation says, that regexp in element-filtering is not possible.
And it doesn't lie. :)
Merion wrote:is there any other possibility to block these elements?
You might not be able to block them, but you can probably hide them, try the advanced view of the Element Hiding Helper Addon: https://addons.mozilla.org/addon/elemhidehelper/
Locked