philwilson.org

Dive Into Legibility

25 April, 2006

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.

See other posts tagged with general and all posts made in April 2006.

Comments

jrhyley
25 April, 2006 at 20:32

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

Pip
25 April, 2006 at 21:32

Good point, I hadn’t thought of that 🙂

jrhyley
25 April, 2006 at 21:58

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););

})();

Pip
25 April, 2006 at 22:09

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 🙂

Pip
25 April, 2006 at 22:28

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; }”);

jrhyley
26 April, 2006 at 00:50

> 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.

Mark
02 May, 2006 at 14:37

I redesigned over the weekend. Better now?

Pip
02 May, 2006 at 15:32

Much, thanks.