Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nitrus

macrumors member
Original poster
Nov 20, 2009
54
0
I have made some custom filters for glimmerblocker, that I have found to be very useful. They block about 95% of all ads, not including googles.

Code:
(.*)\/banners\/(.*)|(.*)\/banner\/(.*)|(.*)\/ads\/(.*)|(.*)\/ad\/(.*)

^banners\.(\w*)\.[a-zA-Z]{2,3}|^banner\.(\w*)\.[a-zA-Z]{2,3}|^ads\.(\w*)\.[a-zA-Z]{2,3}|^ad\.(\w*)\.[a-zA-Z]{2,3}

\/banners\/|\/banner\/|\/ads\/|\/ad\/

var iframes = document.getElementsByTagName("iframe");
for (i = 0; i < iframes.length; i++) {
	var mydomain = document.domain;
	if (mydomain != "live.com") {	
		iframes[i].style.display = "none !important";
	}
}
 

Attachments

  • Untitled.zip
    1.3 KB · Views: 464
I switched back to GlimmerBlocker after trying the AdBlock extension for Safari, as the extension DRAMATICALLY slows down Safari's overall performance. I was almost at the point of switching browsers due to Safari freezing up and giving the beachball, until I thought to disable AdBlock, and, it was fast again.

There's another adblocking extension called AdStopper, but it currently has zero customization options (but does not slow down the browser).

I've found GlimmerBlocker to be the best while still maintaining performance (also goes for Chrome and Firefox), as I can't stand to have Safari or other browsers slowed down to get rid of ads.
 
Keep in mind Glimmerblocker does not only block ads but change (if you want) content too.

I like to remove empty space and sometimes remove entire sections of some websites.

Check the attached pics for an example.
 

Attachments

  • 1.png
    1.png
    455 KB · Views: 411
  • 2.png
    2.png
    279.5 KB · Views: 384
Sorry, It's probably a nooby question, but how do I incorporate these filters?

I'm having the same question. Since op didn't reply I guess it goes like this:

- Go to filters, add a rule (clicking the + icon);

- in Action click Whitelist URL, optionally modifying content.
Host is: ALL HOSTS

- In the CSS (top tab) add the text.

I'm not sure if its working.
==============================

The attached file zip file looks like a xml content similar to subscriptions list. You can find them in ~/Library/Glimmerblocker/Filter subscriptions

I don't know how to add it.
 
I'm having the same question. Since op didn't reply I guess it goes like this:

- Go to filters, add a rule (clicking the + icon);

- in Action click Whitelist URL, optionally modifying content.
Host is: ALL HOSTS

- In the CSS (top tab) add the text.

I'm not sure if its working.
==============================

The attached file zip file looks like a xml content similar to subscriptions list. You can find them in ~/Library/Glimmerblocker/Filter subscriptions

I don't know how to add it.

I couldn't get it working. Thanks for the reply though.
 
I tried a broader filter (from UserStyles). It works blocking ads but the way it does is by changing the content. If you check the a website html source code, you'll see like 2 pages of extra code which is a little messy.

Best option is to just add a subscription filter. You can find a bunch at:
http://glimmerblocker.org/wiki/Filters
 
show me the GlimmerGoogleBlocker?

You can find plenty of CSS modification (for specific websites) in userstyles.org.

This one is to clean up Google:

/* GOODBYE ADS */
#mbEnd, #rhsline.std, #pa1, #tads, #tads.c, .tas, #ImgCont > TABLE[style*='background: rgb(255, 248, 221)'], #mclip, .ads.noprint, #rv_panel, .serp TD.right-nav, .serp TD#table-spacer-cell, #ads-rhs, .pY, .u5, .u8, #lhid_search_ad_unit, #rhsa, #rhswrapper > TABLE#rhssection TR, BODY[onunload='google.Quote.stopQuotes();'] DIV[class='sfe-break-bottom-16'], DIV.sfe-break-top.sfe-break-bottom-16, BODY[marginheight="2"][bgcolor="#ffffff"][topmargin="2"] > TABLE[cellspacing="0"][cellpadding="0"][border="0"][width="25%"][bgcolor="#ffffff"][align="right"], .ads.topads, #rhsads, [src*='ads.pheedo.com'], [src*='www.techcrunch.com/wp-content/themes/techcrunchmu/ads/'], [src*='ads.gigaom.com'], .item-body div p[align='right'], [href*='d.ads.readwriteweb.com'], #ads-top, #ads-bot {display:none !important;}

#leftnav {
display: none;
}
#center_col {
margin-left: 150px !important;

}

It doesn't work in gmail because GlimmerBlocker doesn't block ads in SSL. Make sure Google (search) isn't using it.
 

Attachments

  • google ss.jpg
    google ss.jpg
    73.8 KB · Views: 249
Adding filters...

Create new Filter name: aka Ad - specific, then drag the xml code into the Rules section.
 
Blocking google ads...

Just block the following...
*.doubleclick.net
*.google-analystics.com
*.googleadservices.com
*.googlesyndication.com
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.