The first url slash is special? It assumes a wildcard there? Where is that in the docs. You start talking about ad / *ad* and then you're talking about swf and complete urls. banner.gif (requires Adblock Plus 1.1 or higher). This can be achieved by putting two pipe symbols in front of the filter which makes sure the filter matches at the beginning of the domain name: ||/banner.gif will block all these addresses while not blocking or. Sometimes one wants to block as well as and. For example the filter swf| will block but not. Solution to this problem: add a pipe symbol to the filter to show that there should be definitely the end of the address at this point. For example you might want to block all Flash, but if you add the filter swf the address will also be blocked. While this is usually unproblematic, sometimes you wish that the filter you defined only matches at the beginning or end of an address. there is not difference between the filters ad and *ad*. Usually Adblock Plus treats every filter as if it had a wildcard at its beginning and end, e.g. So, TL DR, but I don't want 4 replies that don't give the answer: How do you block /456/789/1011_abc_1213.jpg using abc as the only known value?Īs a bonus, is this adequately shown in the filter cheat sheet linked above? I know I've done it before, years ago when adblock was just on firefox, and there was only one. I can write this out as a regex, find replace the abc, or take the two parts and do anything, but I can't get _literally the simplest adblock filter_ to work. This attempt became more of a curiosity though, is nobody doing that? I looked on this forum, not much, googled, couldn't find much. I am looking to block something akin to this regex, I know adblock filter rule isn't a rexep, don't say "it isn't a regex". I've made plenty of filters that block screen elements based on DOM, but now I want to do it based on URL (of the image) It never shows how to filter by the part of the url that is the 'filename', but that shouldn't matter right? Imagine I have a filename with abc in the name of the file - this filename is mapped by a URL that has the same part of the filename in the URL, so we're talking about urls. It talks a lot about using parts of the URL to make filters. Hi, I've read this page at least six times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |