I just wanted to share with you... (filters for glimmerblocker)

Discussion in 'Mac Apps and Mac App Store' started by Nitrus, Jul 9, 2010.

  1. Nitrus macrumors member

    Joined:
    Nov 20, 2009
    #1
    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";
    	}
    }
     

    Attached Files:

  2. upaymeifixit macrumors 6502a

    upaymeifixit

    Joined:
    Feb 13, 2009
    #2
    Sorry, It's probably a nooby question, but how do I incorporate these filters?
     
  3. jason221 macrumors 6502

    Joined:
    Jun 26, 2009
  4. djshack macrumors regular

    Joined:
    Apr 11, 2010
    Location:
    Somerville, MA
    #4
    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.
     
  5. miknos Suspended

    miknos

    Joined:
    Mar 14, 2008
    #5
    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.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      455 KB
      Views:
      325
    • 2.png
      2.png
      File size:
      279.5 KB
      Views:
      294
  6. miknos Suspended

    miknos

    Joined:
    Mar 14, 2008
    #6
    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.
     
  7. upaymeifixit macrumors 6502a

    upaymeifixit

    Joined:
    Feb 13, 2009
    #7
    I couldn't get it working. Thanks for the reply though.
     
  8. miknos Suspended

    miknos

    Joined:
    Mar 14, 2008
    #8
    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
     
  9. Apple OC macrumors 68040

    Apple OC

    Joined:
    Oct 14, 2010
    Location:
    Hogtown
    #9
    show me the GlimmerGoogleBlocker?
     
  10. upaymeifixit macrumors 6502a

    upaymeifixit

    Joined:
    Feb 13, 2009
    #10
    Thanks so much. Wasn't sure where to find filters, not sure why I didn't try there. I'm going filter shopping!
     
  11. miknos Suspended

    miknos

    Joined:
    Mar 14, 2008
    #11
    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.
     

    Attached Files:

  12. Nitrus thread starter macrumors member

    Joined:
    Nov 20, 2009
    #12
    Adding filters...

    Create new Filter name: aka Ad - specific, then drag the xml code into the Rules section.
     
  13. Nitrus thread starter macrumors member

    Joined:
    Nov 20, 2009
    #13
    Blocking google ads...

    Just block the following...
    *.doubleclick.net
    *.google-analystics.com
    *.googleadservices.com
    *.googlesyndication.com
     

Share This Page