Slashdot Mirror


Content Blocking by CSS in Safari

ahknight writes "There's a nice summary of how to get various kinds of content, in this case ads, blocked from being displayed via a custom stylesheet you add to your browser. This is mainly for Gecko-based browsers and rather old news, but the good news is that it also appears to work in the ... umm ... latest version of Safari."

6 of 44 comments (clear)

  1. Ad blocking Good by jasoncart · · Score: 4, Insightful

    I'd prefer to see the ads if it keeps the sites I enjoy reading in business.

  2. There's a limit by metamatic · · Score: 4, Insightful

    I didn't mind ads for a while, but when certain sites (ahem) started putting in those huge mega-ads that take up more than half my browser window, I had to start doing some ad blocking to make the web usable. It was either that or learn to
    read
    text
    that
    looks
    like
    this.

    Tragedy of the commons and all that. The people whose ads are being blocked should get angry at the idiots who force us to block ads by making their ads so huge, obnoxious and badly-placed.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  3. Re:Ad blocking Good by Anonymous Coward · · Score: 2, Insightful

    That's what tip jars and subscriptions are for. It costs, what, NOTHING to set one up via Amazon or PayPal? Ok, percent of profits, but no startup cost.

    Better ROI than ads, I'd say, and the site looks cleaner for it.

  4. Stupid layout by wowbagger · · Score: 4, Insightful
    The problem isn't so much the ads, rather it is the fact that the webmaster(baters) who create these sites set up their layouts assuming your screen is 800x600. Therefor, since the ads are 160 wide, and there are two of them (one on each side), that leaves 800-(2*160) = 400 (that's the sort of math these morons use) for the article.

    So, if you are running a 1600x1200 window and larger fonts (anti-aliasing? I need no anti-aliasing!)
    you
    get
    an
    article
    like
    this .

    If the morons would either
    • use a "width=*" for the article
    • Come to an agreement as to what class the actual article text would be

    then there wouldn't be a problem - large browser users like me would either get an article that spans the available space (the width option) or could at least override the setting on the article text in our CSS (the common class option).

    I've contacted several sites about this. For example, PBS (hosters of the Cringely articles) responded saying "Some people don't like long lines of text, so there!" (OK, then they can resize their windows to get the line length they want.)

    Unfortunately, since every site uses a slightly different "width=", and since CSS does not allow you to say "width=[400..800]" or something like that, you have to have a seperate entry for each site, and when the webmaster(bater) changes the layout you have to update your CSS and restart your browser.

    I do wish people would realise that HTML is about giving enough info to my browser to render the page, not about being pixel-exact.
    1. Re:Stupid layout by docwhat · · Score: 2, Insightful

      If the web designer wants to set the width, then they should use CSS and set the width based on character widths. This would allow people to bump up the font size and keep it looking good.

      But then agin, the whole thing is irritating. Web designers forget, unlike TV, surfing isn't passive. You piss of a viewer, they walk.

      Ciao!

      --
      The Doctor What (KF6VNC)
  5. Keep editing your HOSTS file by Anonymous Coward · · Score: 2, Insightful

    Blocking via CSS still downloads the ads to you. You just aren't seeing them. Although blocking via CSS is a valuable tool, particularly in some corporate environments, it does not replace the HOSTS file.