2014-05-23

THAT DOES IT! (Or how to make Google Maps print properly on Firefox/Linux)

I'm the type of person that won't let go of problems that are thrown my way until I'm either convinced that I can't do anything about it or until I solve it.

Well, I have been solving lots of such problems -- technological ones -- and thinking "this might help somebody, put it on a blog", but never actually took the time to do it.

So, after trying to print yet another Google Maps directions and seeing some of the steps breaking on the Print Preview, I set on to finding an "easy" fix for that (because my latest work around was to duplicate the broken steps until I could have them all on the printed version, which is quite bothersome to do).

Well, I found it. And I also finally convinced myself to post it up, and it will be on this blog.

Ok, the fix first:

  1. Open the Printer-friendly version of the Google Maps directions (click on the print icon on the main Google Maps page)
  2. Open the Firefox Developer Tools by pressing Ctrl+Shift+i
  3. Select the "Inspector" tab
  4. Open the Find tool (Ctrl+F) and type ".dirsegment" (without the quotes).
  5. Repeat until you fall on a "TR" element (should actually be the first find).
  6. On the right side of the Inspector, click on a white space right below where it says ".dir .dirsegment, .dir .num {". It will create a new style line for you to type.
  7. Type (without the quotes): "page-break-inside: avoid"
  8. Be happy!
In case you're wondering, I did report that to Google.

So I decided to reuse this old blog to also publish my technological musings. Everything should be properly tagged for your convenience so that if you're only interested on the technological things you'll be able to filter the philosophical ones out, and vice versa.

Well, that's it for now.