Can I use hide element with this code?

General information, announcements and questions about the EasyList subscriptions.
Locked
MackemX
Site Member
Site Member
Posts: 13
Joined: Thu Jan 04, 2007 8:14 pm

Can I use hide element with this code?

Post by MackemX »

Hi all, 1st post here and I'm slowly learning how to do stuff, especially with from rick752 but I'd like to learn more :)

how much of this code, if any, could I hide?

Code: Select all

<b>This is <a href="http://testdomain.com/test/" class="abcde" title="testing:playing_around">a test</a> though <a href="http://testdomain.com/extra/" class="edbca" title="testing:me_again">I'm 
not sure!</a></b>
User avatar
Stupid Head
Emeritus Contributor
Emeritus Contributor
Posts: 97
Joined: Tue Aug 08, 2006 2:47 am
Location: USA

Post by Stupid Head »

There are three elements you can block (two of them are nested in one).
What, me worry?
MackemX
Site Member
Site Member
Posts: 13
Joined: Thu Jan 04, 2007 8:14 pm

Post by MackemX »

what are the 3 elements I can block and what would I be left with on the page?
Sheepy
Emeritus Contributor
Emeritus Contributor
Posts: 153
Joined: Mon May 08, 2006 7:53 am
Location: Hong Kong

Post by Sheepy »

One < b > and two < a >.

You can hide the b (i.e. everything), first a, second a, or both a.
Last edited by Sheepy on Sat Jan 06, 2007 3:37 pm, edited 1 time in total.
MackemX
Site Member
Site Member
Posts: 13
Joined: Thu Jan 04, 2007 8:14 pm

Post by MackemX »

Sheepy wrote:One <b> and two <a>.

You can hide the b (i.e. everything), first a, second a, or both a.
I get it now and it's quite simple really ;). It's even easier to instantly see when I look at the code using Firebug 8)

obviously this is just one line of code but if I was to hide the <b> on a page would it hide every other <b> on the page or can I specify the text also to stop this?
User avatar
rick752
Honorary Member
Honorary Member
Posts: 4508
Joined: Fri Dec 30, 2005 1:02 am
Location: New York, USA

Post by rick752 »

MackemX wrote:or can I specify the text also to stop this?
Nope, you can't define it by the nested text (that's what I was trying to tell you about yesterday). Remember that I told you about 'treeing' to the one specific tag one though? You can find an element ahead of it and then 'tree' standard css code to specify that single "b" relative to another defined element. Something like:

Code: Select all

##somesite.com##div[id="a_line"]b
... where this should take out a "b" that follows a "div" with an id of "a_line"

... and no one here is better at that than Sheepy :wink:
"Experience is something you don't get until just after you need it"
MackemX
Site Member
Site Member
Posts: 13
Joined: Thu Jan 04, 2007 8:14 pm

Post by MackemX »

I'm slowly grasping it and when I come across something similar and can't do it, I know where to come ;)
Locked