Fixing the web…again
Love it or hate it, Web2.0 has some things to offer us. The most significant one being: People with some sense of style are getting in on the game. I like the looks of a lot more sites now than I did a few years ago. People that know what looks good are hacking away at css.
This is cool, becuase those of us who are not good at these things can steal their ideas!
I have been using Ruby On Rails (though most of that is for another post), and one of the first things I noticed is that the fonts in a rails app are the typical Web2.0 looking things. Crisp clear, sweet! It’s just CSS, ripp it out of there and put it in a greasemonkey script and viola! The whole web gets a face lift!
// ==UserScript== // @namespace http://nathanpowell.org // @name I hate everyones fonts! // @description use my fonts! // @include * // ==/UserScript==
var newCss = 'body {' +
'font-family: verdana, arial, helvetica, sans-serif;' +
'}';
function overRideCSS( newCss ) {
var head = document.getElementsByTagName("head")[0];
var styleTag = document.createElement("style");
styleTag.setAttribute("type", 'text/css');
styleTag.innerHTML = newCss;
head.appendChild(styleTag);
}
overRideCSS( newCss );
I have used this script before to fix other sites CSS, but this one I let execute on every site I visit. Try it, it's sweet!