Jump to content

Firefox stopped blocking Neopet ads.


Tamara

Recommended Posts

Woohoo! It worked! Goodbye nasty gray block! You rock Severus, seriously.

 

Alrighty - I have another challenge for it. It seems that when the code was removed from easylist - they almost removed ANOTHER one that displays advertisement blocks all over the page.

 

(You can see what I'm talking about at the bottom of the login screenshot I have on the first page).

 

This is the code for those...

 

.ad_wrapper

{

float: left;

background-color: white;

}

.ad_wrapper_fixed

{

display: table;

margin: 0 auto;

}

.ad_wrapper p, .adBox p, .ad_wrapper_fixed p /* HOOK: should be child selector but we assume there are no <p> in ads */

{

background-color: black;

color: white;

font-size: 7.5pt;

text-align: center;

padding: 0;

margin: 0;

}

 

.adBox {

display: table;

 

text-align: center;

 

margin-left: auto;

margin-right: auto;

 

border: 1px solid #000000;

background-color: #000000;

color: #FFFFFF;

 

Is there any way to block those? I tried adding a similar blocking rule, from what you typed up, but it didn't work in this case.

 

Any alterations in the code to get rid of those nasties? I'll snag more screenshots if you need them.

Link to comment
Share on other sites

Guest Severus Snape
Woohoo! It worked! Goodbye nasty gray block! You rock Severus, seriously.

 

Alrighty - I have another challenge for it. It seems that when the code was removed from easylist - they almost removed ANOTHER one that displays advertisement blocks all over the page.

 

(You can see what I'm talking about at the bottom of the login screenshot I have on the first page).

 

This is the code for those...

 

 

 

Is there any way to block those? I tried adding a similar blocking rule, from what you typed up, but it didn't work in this case.

 

Any alterations in the code to get rid of those nasties? I'll snag more screenshots if you need them.

 

There is a way to condense that code, because that only is the CSS of the elements, not the instructions to block them. Adblock won't work for this. What you need to do is install Chromedit Plus, as that is a little extension that allows you to use (or in this case block) HTML elements (like those horrific ads boxes) using CSS, which is another language tied to the customization of HTML elements. The program does this by editing the usercontent.css files (and others) directly, hidden deep inside Firefox's preferences, so you don't need to go there and edit them.

 

Okay, enough tech stuff, let's go on how to block these for good:

 

1- Grab and install Chromedit Plus from here (just click Install and restart FF).

 

2. Go to Tools > Chromedit Plus > Chromedit. A window should pop-up.

 

3. Select the USERCONTENT.CSS tab (it has a green border) and scroll down. At the bottom of the code, leave a space (just press Return or Enter), and copy and paste this:

 

#ban_bottom,.ad_wrapper_fixed,#ad_wrapper_fixed,
.adbox,#adBox,.adBox2,.footOverlay,.ad_wrapper,div.noscript,
div#noscript,#expando_object,#expando_imbed,.yahoo_cmss,
.phpGamesTowerAd,#book-partners,#excitebots_track_container,#excitebots_popup_container,#excitebots_ove
rlay_container,#excitebots_connection_container{display: none !important;}
#excitebots_site_container {
top: 0px !important;
}

 

4. Save and restart.

 

All done. :)

Link to comment
Share on other sites

  • 2 weeks later...

Ack, I totally missed this topic!

 

Anyway, it seems the EasyList maintainer has replaced the missing filters and resolved this issue. :) If you have any ad blocking problems in the future, please use the 'contact us' form on the relevant TDN guide so that the issue can be relayed directly to my to-do list. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...