How to remove parts

Post any interesting custom filters here.

Moderators: Murray, Jeff

How to remove parts

Postby broman.martin » Tue Apr 20, 2010 6:28 pm

What is the best way to get annoying things off? on http://www.aftonbladet.se I managed to get parts of the right side away, but not all :( what I want is simply to know what exactly to look for (not used html/css for a long time).

I'll attach a picture of parts of the screen, and if someone could help me just a tiny bit explanation on how to look for what to remove I would be soo happy! That which is Inside the red rectangle is what I want to keep, all else is useless to me. And since I have limited resolution it annoys me to have that scroll bar at the bottom, and the things on the right/left/top are irrelevant for me. The center part of the news site is news, the rest is to me gibberish.

I just don't need a way to remove them, but perhaps a simple tutorial? If someone has the time. And as I said, I had some removed, but the rest (especially on the right side) wouldn't go away entirely.

Many thanks and lots of gratitude,
/Martin
Attachments
Untitled.jpg
Untitled.jpg (116.94 KiB) Viewed 5231 times
broman.martin
Wiz
 
Posts: 152
Joined: Tue Aug 18, 2009 11:11 am

Re: How to remove parts

Postby Jeff » Tue Apr 20, 2010 6:52 pm

The best tutorial is trial and error and lots of practice. :)
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 6119
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States

Re: How to remove parts

Postby broman.martin » Tue Apr 20, 2010 7:42 pm

Could you give me a hint on how to remove all that's on the right side? What specific css-codes I should look at? cause that side had some major freaking css-coding.
broman.martin
Wiz
 
Posts: 152
Joined: Tue Aug 18, 2009 11:11 am

Re: How to remove parts

Postby Jeff » Wed Apr 21, 2010 3:52 am

I've already removed all of the ads from that page.

Pretty much everything left is legit content or shares code with legit content.
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 6119
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States

Re: How to remove parts

Postby Zhiroc » Sat May 15, 2010 6:23 am

Like I just posted elsewhere, what AM needs is CSS- and domain-based HTML element removal. Everything on the right is in a <div id="abPilramContainer">. Unfortunately, it doesn't seem like AM looks at the ids for the "Remove divs/spans with text" filter. You can do it with the "Add CSS to all pages" with "#abPilramContainer { display:none }" as the filter, but I really hate adding such to every page due to the risk of breaking some other site. I suppose you could write a piece of JavaScript to do it more safely, but that's more pain than it's worth.

In Firefox, I managed to do it using AdBlock Plus with the very simple rule: "www.aftonbladet.se##div#abPilramContainer".

I could probably also do it in Greasemonkey (again for Firefox) with some JavaScript/jQuery. That would also restrict it to the given domain, so it would be safe. And I wouldn't be trying to input a function in the one-line UI that AM gives for a filter, so it would be less painful to write.
Zhiroc
Active Member
 
Posts: 15
Joined: Sat May 08, 2010 5:46 am

Re: How to remove parts

Postby Jeff » Sat May 15, 2010 6:41 am

First you need to remove the thought that Ad Muncher needs to be like anything else.

Our syntax will always be different from Adblock plus.

Second it's very easy to make a filter that doesn't break anything.

And lastly, all ads of any significance are removed by default, so for the most part you don't need to do anything.

Just report any missing ads and we'll do the rest.
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 6119
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States


Return to Custom Filters

Who is online

Users browsing this forum: No registered users and 3 guests

cron