blocking certain parts of HTML

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
MackemX
Posts: 38
Joined: Thu Jan 04, 2007 8:57 pm

blocking certain parts of HTML

Post by MackemX »

just a quick question :)

is there a simple way to specify a certain part of HTML and simply have it ignored and not shown?

or would I have to learn how to use something like Greasemonkey for this?

cheers ;)
Wladimir Palant

Post by Wladimir Palant »

Element hiding is your friend: http://adblockplus.org/en/filters#elemhide_basic

You can take a look at the EasyElement filter list for some examples.
MackemX
Posts: 38
Joined: Thu Jan 04, 2007 8:57 pm

Post by MackemX »

thanks for the info but I think I got myself mixed up in what I asked for :). Yeah I've used element hiding already and I'm slowly progressing but I can't see how I can do what I wanted to do :?

I was actually thinking of being able to specify some HTML code and then either remove/hide it or better yet replace it

I've been using it great to remove certain links from phpbb forum headers so I only see the login/messages/profile links at the top instead of around 15 various options. The problem was I still had wasted space where I'd removed certain parts :(

I guess I need to look at element hiding but with multiple conditions but I'm not so sure I'll be able to do it as I may affect other parts of the page/site

I wish it was as simple as specifying the HTML code and then having the option to hide/replace it :D
Wladimir Palant

Post by Wladimir Palant »

I guess you are asking for Proxomitron-like functionality. Well, Adblock Plus cannot do it and it is unlikely that this functionality will ever be added.
MackemX
Posts: 38
Joined: Thu Jan 04, 2007 8:57 pm

Post by MackemX »

would I need something like Proxomitron to do this?

you specify the HTML you want to find (this example is just the 'View more Emoticons' links code below all the Emoticons graphics when posting a reply

Code: Select all

<a href="posting.php?mode=smilies" onclick="window.open('posting.php?mode=smilies', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">View more Emoticons</a>
and you can either remove it altogether or specify it's replacement like in this example where I change the popup window size and text for the link

Code: Select all

<a href="posting.php?mode=smilies" onclick="window.open('posting.php?mode=smilies', '_phpbbsmilies', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=400');return false;" target="_phpbbsmilies" class="nav">View more Smilies</a>
I guess I'm asking silly questions to the more experienced here but I'm only learning ;)
Locked