7 replies [Last post]
Tyke
Offline
newbie
Last seen: 14 years 3 weeks ago
Joined: 2007-05-02
Posts: 5
Points: 0

Okay, I use the following code to 'Format documents using my style sheet' to get rid of the top banner ad on neopets:

div#ban {

display: none !important;

}

They have a bottom ad as well, and I can't figure out how to get rid of it. It has a div class instead of a div id (none of this means anything to me, by the way) and when I plug it in to the above code, it doesn't work. Anyone know what to do?

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 13 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

Have you tried #footer {

Have you tried .adBox { display: none; }? Is it ethical? I just hope no neopets get hurt in the process. Smile

This is my big chance . . . yep, I blew it . . .

Tyke
Offline
newbie
Last seen: 14 years 3 weeks ago
Joined: 2007-05-02
Posts: 5
Points: 0

You're my hero. That

You're my hero. Smile

That worked perfectly. And rest assured, no neopets were hurt in the making of this code.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 22 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

If those adverts are

If those adverts are injected by your host, you may be violating your terms of service. If they catch you, they could shut you down. If the page is a commercial venture, you should get paid hosting that does not include the ads.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Tyke
Offline
newbie
Last seen: 14 years 3 weeks ago
Joined: 2007-05-02
Posts: 5
Points: 0

This is just to adjust how

This is just to adjust how Neopets displays in my browser, it doesn't effect anyone else in the whole wide world. Neopets isn't my website. Smile

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 15 weeks 17 hours ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Ah, so in fact you're

Ah, so in fact you're creating a custom stylesheet for a site you frequent?

Good stuff! Although have you tried the Adblock plus extension?

Verschwindende wrote:
  • CSS doesn't make pies

Tyke
Offline
newbie
Last seen: 14 years 3 weeks ago
Joined: 2007-05-02
Posts: 5
Points: 0

Yup!

That's correct. Smile I also use Firefox and Adblock Plus (I have two accounts and log in simultaneously with the two browsers).

Thanks for the suggestion though. This is a rather helpful forum. *bookmarks* Smile

Edit: I put 'Format documents using my stylesheet' in the subject line because that's what the option is called in IE Tools. Sorry if it was a little misleading. Wink

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 22 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Tyke wrote:Edit: I put

Tyke wrote:
Edit: I put 'Format documents using my stylesheet' in the subject line because that's what the option is called in IE Tools. Sorry if it was a little misleading. Eye-wink

We-ell, it fooled me. Tongue

I'd call it a 'user style sheet'. That's a great plan, though. I'm glad to hear of someone using the capability. Except for adblock, I haven't done that, myself, since I need to see the author's stylesheet in action.

Sorry I gave you off-track advice.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.