philwilson.org

a geek commodity

Dive Into Legibility

April 25th, 2006 by Phil

Remove Mark Pilgrim’s sidebars and make the content full-width. Not perfect, but it works:

#container {
  width: 90% !important;
  padding: 0 !important;
  padding-right: 10% !important;
}

I use the Stylish Firefox extension for maintaining site-specific CSS.

| 8 Comments »

8 Responses

  1. It’d be funnier if you made it a greasemonkey script.

    Posted by jrhyley on April 25th, 2006 at 8:32 pm
  2. Good point, I hadn’t thought of that :)

    Posted by Pip on April 25th, 2006 at 9:32 pm
  3. Here you go:

    // ==UserScript==
    // @name Dive Into Legibility
    // @namespace http://philwilson.org/
    // @description Dive Into Legibility
    // @include http://diveintomark.org/*
    // ==/UserScript==

    (function() {
    var style = document.createElement(’style’);
    style.setAttribute(‘id’, ‘gmrc’);
    document.getElementsByTagName(‘head’)[0].appendChild(style);
    document.getElementById(‘gmrc’).sheet.insertRule(‘#container {width: 90% !important; padding: 0px !important; padding-right: 10% !important;}’, 0););

    })();

    Posted by jrhyley on April 25th, 2006 at 9:58 pm
  4. ha! I hadn’t thought you’d actually do it!

    > .sheet.insertRule

    ooh, I’ve not seen that before, how very exciting! It’s not often someone shows me something new :)

    Posted by Pip on April 25th, 2006 at 10:09 pm
  5. although in fact, isn’t there a GM_addStyle() ? Along with the !important declarations, that should also work. Something like:

    // ==UserScript==
    // @name Dive Into Legibility
    // @namespace http://philwilson.org/
    // @description Dive Into Legibility
    // @include http://diveintomark.org/*
    // ==/UserScript==

    GM_addStyle(“#container { width: 90% !important; padding: 0 !important; padding-right: 10% !important; }”);

    Posted by Pip on April 25th, 2006 at 10:28 pm
  6. > isn’t there a GM_addStyle()
    There’s a who what now? Now you’ve shown me something new. I really must fix my mail server and start reading the list again. And more carefully.

    Posted by jrhyley on April 26th, 2006 at 12:50 am
  7. I redesigned over the weekend. Better now?

    Posted by Mark on May 2nd, 2006 at 2:37 pm
  8. Much, thanks.

    Posted by Pip on May 2nd, 2006 at 3:32 pm

Leave a Comment




Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.