Forum Thread
  Posts  
Fix for bad chosen font size (Forums : Support : Fix for bad chosen font size) Locked
Thread Options
Dragonlord
Dragonlord Linux-Dragon of quick wit and sharp tongue
Aug 22 2007 Anchor

This site has one big problem and this is a totally tiny font size which is caused due to a rather moronic "body" CSS style tag. For people having a sane system with specific settings this can result in fonts which are small as hell. Increasing the font size every time you visit the page is annoying and setting a minimal font size is as bad. So I quickly slammed together some fix to save the day of such people.

This fix works only on Firefox. You have to have the GreaseMonkey Add-On installed for this to work. Just copy the text below in a file "moddb_font_fix.user.js" changing the value "11px" to whatever font size you like to be the base font size of this page. Then import the file in GreaseMonkey and enable it. ModDB will now have no more stupid small fonts.

// ==Userscript==
// @name Font Fix
// @namespace dragon
// @description Fix the stupid font size
// @include Moddb.com*
// @include http://*.moddb.com/*
// @include Moddb.com*
// @include http://*.moddb.com/*
// ==/Userscript==

function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}

addGlobalStyle(
'body{' +
' font-size: 11px ! important;' +
'}' );


Happy browsing. Maybe this file can be added somewhere for pained people to download ;)

Edited by: Dragonlord

Aug 22 2007 Anchor

i like the font, when i get old and go blind i will use this though :)

AgeNt_
AgeNt_ 191 x 7 = 1337
Aug 22 2007 Anchor

moddb had small fonts on firefox? i didnt know this was small.

--

User Posted Image

Aug 22 2007 Anchor

Dragonlord in 08'.... A man of the people.

--

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.