NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
greasemonkey? (Score:1)
More curiosity than anything else, but is there a specific reason for why you're using userContent.css instead of a quickie GM script ?
It's probably my lack of familiarity with the chrome stuff and also my reluctance to mess with Firefoxy internal files speaking.
Reply to This
Re:greasemonkey? (Score:2)
Re:greasemonkey? (Score:2)
Re:greasemonkey? (Score:1)
// TorgoBoing
// ==UserScript==
// @name torgoboing
// @namespace http://diveintogreasemonkey.org/download/
// @description What usercontent.css can do, Greasemonkey can do too
// @include http://*boingboing.net/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
Re:greasemonkey? (Score:1)
I suppose I should provide some explanation :) Oh, bother.
Setting the sidebar divs to not display was my first choice, since that's the ugly part of the page. I also have a preference for having the page content take up the entire screen width, so I did my page widening hack. Hardcoding the pixel size is bad, I know :( Was too lazy to figure out a nicer way to do it. This is how I would have done it myself.
I commented all of that out ultimately and replicated your usercontent.css logic though.
Re:greasemonkey? (Score:2)
For some reason I thought adding stylesheets at "runtime" like this wouldn't work, but obviously it works just fine.
You're a superstar!