afterdawn Advertisement

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

afterdawn Advertisement

Post by asad78611 »

Hi. I've been unable to delete this ad on http://forum.afterdawn.com/

If you go into a topic just by the last post is a post with username Advertisement. I've been able to get rid of the ad and iframe using ABP but i cant get with of the advertisement name and area
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

You can't get rid of the whole forum row of that ad because they all have the same element name ... you can only remove the ad part.

You can't define an element in ABP using the regular text (Advertisement) contained within it.
asad78611

Post by asad78611 »

Is there a possibility for that to be a feature. selecting an element via its contents. I see you can select elements via their parent nodes. Is there a chance of doing this for Child Node
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Unfortunately, plain text contained between beginning and ending tags cannot identify its element ... nor is there a way to write a css rule that way for ABP, afaik.

You can select a child element if you path from a specific element BEFORE your target element .... or by using a ":first-child: or ":last-child" selector. These must be done using regular css rules (they start with ##). You can use a uniquely defined TABLE to find a TD in another following TABLE. Example something like:

Code: Select all

##TABLE[id="container"]+ TABLE> TR> TD:first-child + TD
This tells ABP to remove the second table cell in any table that is after a table who's 'id' is "container".

Because the forum uses the exact same table row generation for any post, without a 'unique' path or identifier preceding the "Advertisement" table row, there is no way to target it.

Hope I made this easy to understand as you seem to be knowledgeable.

Whether there will be a way to select elements via regular text ... I really don't know.
Last edited by rick752 on Thu May 17, 2007 11:55 pm, edited 1 time in total.
asad78611

Post by asad78611 »

I see where your getting from. I've also noticed that there is a > operator which tells adblock plus to go down in the DOM tree. the isn't by any chance a < operator in the code of adblock plus to tell the program to go up in the DOM tree eg.

Code: Select all

##TABLE > TR < IFRAME
The code telling adblock plus to get rid of TR which has IFRAME as a child
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

I have the perfect discussion for you to read on my EasyList forum. This should answer your questions as the OP there started the same exact topic:
http://www.richsterling.com/forum/viewtopic.php?p=3389

ps: Your last question is near the end of the topic.
Locked