{"id":5203,"date":"2010-11-06T14:40:25","date_gmt":"2010-11-06T19:40:25","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=5203"},"modified":"2010-11-06T14:40:25","modified_gmt":"2010-11-06T19:40:25","slug":"on-fixing-facebooks-news-feed-font","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=5203","title":{"rendered":"On Fixing Facebook&#8217;s News Feed Font"},"content":{"rendered":"<p>Tuesday morning, as I was settling down to my first cup of coffee for the day, I logged into <a href=\"http:\/\/www.facebook.com\/\">Facebook<\/a> and noticed something.  No, not the big banner at the top of my news feed telling me that it was Election Day and which of my friends had already voted, though that was a useful reminder.  Rather, I noticed that I could barely read my news feed.  The words seemed <i>smaller<\/i>.<\/p>\n<p>At first, I thought it was an eyesight problem; I had just gotten out of bed, after all, and the coffee had yet to kick in.  Then, at work, I logged into Facebook again, and noticed that there, too, the typesize of the News Feed was still quite small.  I decided that this was probably due to a bug with the software change that put the Election Day banner atop the newsfeed; after all, personal pages weren&#8217;t affected by small type.<\/p>\n<p>Wednesday, the problem lingered.  A friend complained about it as a Facebook status update.  The type size <i>was<\/i> smaller.  I didn&#8217;t really <i>mind<\/i> it (our work websites, for some reason, use 8pt Tahoma, so I&#8217;m used to websites with <i>really tiny<\/i> type), but surely there was some way to fix it.<\/p>\n<p>A quick search this morning led me here &mdash; a <i>Forbes<\/i> article titled &#8220;<a href=\"http:\/\/blogs.forbes.com\/oliverchiang\/2010\/11\/05\/is-facebooks-new-font-size-too-small-try-facebook-font-fixer-2\/\">Is Facebook&#8217;s New Font Size Too Small? Try Facebook Font Fixer<\/a>.  This led me to <a href=\"http:\/\/userscripts.org\/scripts\/show\/89715\">this GreaseMonkey script for Firefox<\/a>, which I quickly set up in <a href=\"http:\/\/www.opera.com\/\">Opera<\/a>, my browser of choice, as a User JavaScript script.<\/p>\n<p>Not being a Firefox user, I&#8217;m not familiar with <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/748\/\">GreaseMonkey<\/a> &mdash; Opera has features like this built in, under the hood &mdash; but it looks like it&#8217;s a pretty simple browser extention, and it&#8217;s all you Firefox users need to fix Facebook&#8217;s News Feed.<\/p>\n<p>I wasn&#8217;t entirely pleased with the behavior of the script in Opera.  Facebook&#8217;s home page would load at 11 point, and then it would magically <i>snap<\/i> to 13 point.  That struck me as clunky.  I looked at the script, and what it does, simply enough, is to add a stying rule to Facebook&#8217;s code when your browser loads the page that changes the point size for the News Feed from 11 pixels tall to 13 pixels tall.  If that&#8217;s all the script did, then there&#8217;s surely a simpler solution &mdash; a custom stylesheet.<\/p>\n<p>I deleted the User JS file, and wrote this CSS file instead:<\/p>\n<p><code>#contentArea h6 { font-size: 13px !important; }<\/code><\/p>\n<p>And I set Opera to call this stylesheet, naturally called facebook.css, whenever I loaded Facebook.  I reloaded Facebook&#8217;s homepage, and no magical snapping.  It looked &#8220;right&#8221; the first time. \ud83d\ude42<\/p>\n<p>On a side note, there is almost no information that I can find online on writing custom browser CSS for Facebook.  You&#8217;d think, given the sheer number of people who use Facebook, that there would be far more information on writing custom CSS, like the ID and class names used by Facebook, than there is.<\/p>\n<p>Firefox doesn&#8217;t make implementing custom CSS easy at all; <a href=\"http:\/\/coreygilmore.com\/blog\/2008\/10\/23\/per-site-custom-css-in-firefox\/\">here&#8217;s a how-to on how to do it<\/a>.  First, you need to know where to put the file.  Then you need some additional code.  However, if you follow the instructions I just linked to, here&#8217;s the code you need for the userContent.css file for Firefox:<\/p>\n<p><code>@-moz-document domain(facebook.com) {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#contentArea h6 { font-size: 13px !important; }<br \/>\n}<\/code><\/p>\n<p>And if you want Facebook&#8217;s sidebar ads to go away, this line will do the trick:<\/p>\n<p><code>#sidebar_ads div.fbEmu { display: none; }<\/code><\/p>\n<p>(You can&#8217;t do a <b>display: none;<\/b> on the #sidebar_ads ID, because the page layout breaks pretty badly if you do.  It&#8217;s poor layout design; it&#8217;s using the sidebar ads to force the main content into a specific place on the page.)<\/p>\n<p>For Firefox, the complete code (including no ads) for userContent.css would be:<\/p>\n<p><code>@-moz-document domain(facebook.com) {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#contentArea h6 { font-size: 13px !important; }<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#sidebar_ads div.fbEmu { display: none; }<br \/>\n}<\/code><\/p>\n<p>Because I like to be different, I changed Facebook so my browser uses Serif fonts instead of Sans-Serif fonts for the main content.  (Sidebars and menus I left alone; they usually don&#8217;t handle custom CSS typography tampering well.)  And because I could, I changed most links green.<\/p>\n<p>No one else may want to look at Facebook in the same way, but for something a little different, my full facebook.css file for Opera reads as follows:<\/p>\n<p><code>#contentArea,<br \/>\n#profile_minifeed,<br \/>\n.UIStandardFrame_Content {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-family: \"Palatino Linotype\", \"Times New Roman\", serif;<br \/>\n}<\/p>\n<p>#contentArea h6 {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-size: 14px !important;<br \/>\n}<\/p>\n<p>.uiAttachmentTitle,<br \/>\n.UIStoryAttachment_Title {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-size: 13px !important;<br \/>\n}<\/p>\n<p>.commentContent,<br \/>\n.uiAttachmentDesc,<br \/>\n.UIStoryAttachment_Copy {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-size: 12px !important;<br \/>\n}<\/p>\n<p>#sidebar_ads div.fbEmu,<br \/>\n#pagelet_adbox {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: none;<br \/>\n}<\/p>\n<p>.UIIntentionalStory_Message a,<br \/>\n.UIRecentActivity_Body a {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: #006600 !important;<br \/>\n}<\/p>\n<p>.commentContent a,<br \/>\n.uiListItem a,<br \/>\n.UIStoryAttachment_Caption a {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: #336600 !important;<br \/>\n}<\/p>\n<p>.uiAttachmentTitle a,<br \/>\n.UIStoryAttachment_Title a,<br \/>\n.UIImageBlock_ICON_Content button,<br \/>\n.UIImageBlock_ICON_Content label,<br \/>\n.UIImageBlock_ICON_Content a,<br \/>\n.uiTextSubtitle label,<br \/>\n.cmnt_like_link,<br \/>\n.stat_elem,<br \/>\n.comment_link,<br \/>\n.ego_unit a {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: #009966 !important;<br \/>\n}<\/code><\/p>\n<p>And, who knows?  I may trick it out more.  Or I may not. :h2g2:<\/p>\n<p>None of this will break a browser.  You do have to feel comfortable with modifying some files, especially with Firefox, or delving into directories where mortal man was never meant to go.  I don&#8217;t mind.  It&#8217;s fun to hack a website, like Facebook, to fix its deficiencies and bend it to my will. \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tuesday morning, as I was settling down to my first cup of coffee for the day, I logged into Facebook and noticed something. No, not the big banner at the top of my news feed telling me that it was Election Day and which of my friends had already voted, though that was a useful<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=5203\">Continue reading <span class=\"screen-reader-text\">&#8220;On Fixing Facebook&#8217;s News Feed Font&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[752,374],"class_list":["post-5203","post","type-post","status-publish","format-standard","hentry","category-life","tag-facebook","tag-opera","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5203"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5203\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5203"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}