Top 3 for the day

Top 3 for the day


How to Customize Firefox Reader View for Better Readability

Posted: 01 Aug 2019 08:19 AM PDT

Reader View is a popular feature of the Firefox browser, that changes the appearance of a web page, and makes it more readable by removing visual clutter such as images, ads, headers, and sidebars. Reader View is, however not available, for all home pages.

If the feature is available for a certain page, you will find the icon to enable it in the shape of a small book icon displayed to the right of the address bar.

IMAGE: Mozilla.org

There are a few built-in options that allow readers to customize the look of the Reader View. We’ll be looking at those options before showing you what you can do to further personalize the look of the Reader View. For demo purposes, I will be using an article by National Geographic article.

Pre-Built Options

Firefox Reader View comes with a few pre-built customization options such as dark, light and sepia backgrounds, adjustable font sizes, and serif and sans-serif typefaces. You can customize the theme by overriding the CSS rules of these pre-existing options.

Default Reader View Options
Default Reader View Options

I use a dark skin with serif fonts, and this means that I will need to override the belonging CSS classes, in my case .dark and .serif.

If you want to customize another theme variant (skin + font), you will need to use the appropriate CSS selectors. You can check these out with the help of the Firefox Developer Tools by hitting F12.

Check CSS Selectors
Create the Custom CSS File

You need to create a file called userContent.css inside the chrome folder of your Firefox profile folder for your Reader View customizations. To find your Firefox profile folder, type about:support into the URL bar and press Enter.

You’ll find yourself on a page that contains the technical data related to your Firefox install. Click the Show Folder button, and it will open your Profile folder.

Profile Folder Button in Firefox
the Profile Folder button

Create a folder called chrome inside your Profile Folder (if you don’t have it yet), and a file called userContent.css inside the chrome folder. The file path looks like this:

  ...\Profiles\<your-profile-folder>\chrome\userContent.css  
Add the Custom CSS Rules

Once you’ve created and opened userContent.css in a code editor, it’s time to add your CSS rules. In order to customize the design of the Reader View, you need to target the <body> tag with the appropriate selectors.

You can use the following selectors for the different default options:

  /* When dark background is selected */  :root[hasbrowserhandlers="true"] body.dark  {  }  /* When light background is selected */  :root[hasbrowserhandlers="true"] body.light  {  }  /* When sepia background is selected */  :root[hasbrowserhandlers="true"] body.sepia  {  }  /* When serif font is selected */  :root[hasbrowserhandlers="true"] body.serif {  }  /* When sans-serif font is selected */  :root[hasbrowserhandlers="true"] body.sans-serif {  }  

You can also combine the classes, to target a specific combination of settings.

  /* When dark background and serif font are selected */  :root[hasbrowserhandlers="true"] body.dark.serif  {  }  /* When sepia background and sans-serif font are selected */  :root[hasbrowserhandlers="true"] body.sans-serif.sepia  {  }

Do not use the common selector :root[hasbrowserhandlers="true"] body to target all the settings at once. It will work, but it will also affect other browser pages, such as about:newtab, as their root elements also carry the hasbrowserhandlers attribute (which is used to mark the event handlers of internal Firefox pages, such as about: pages).

Here’s the code I added to my userContent.css. I changed the font family, font style, colors, and widened the text container. You can use any other style rules according to your own taste.

  /** userContent.css  ***************************/  :root[hasbrowserhandlers="true"] body.dark.serif,  :root[hasbrowserhandlers="true"] body.dark.serif #reader-domain {  font-family: "courier new" !important;  }  :root[hasbrowserhandlers="true"] body.dark.serif {  background-color: #13131F !important;  color: #BAE3DB !important;  }  :root[hasbrowserhandlers="true"] body.dark.serif #reader-domain {  font-style: italic !important;  }  :root[hasbrowserhandlers="true"] body.dark.serif h1,  :root[hasbrowserhandlers="true"] body.dark.serif h2,  :root[hasbrowserhandlers="true"] body.dark.serif h3,  :root[hasbrowserhandlers="true"] body.dark.serif h4,  :root[hasbrowserhandlers="true"] body.dark.serif h5 {  color: #06FEB0 !important;  }  :root[hasbrowserhandlers="true"] body.dark.serif a:link {  color: #83E7FF !important;  }  :root[hasbrowserhandlers="true"] body.dark.serif #container {  max-width: 50em !important;  }

Note that it’s necessary to use the !important keyword in userContent.css for all CSS rules. The browser adds user-specified property values before the values specified by the author (the developer of the given web page, here the Reader View). Hence, any user-specified property value without the !important keyword won’t work if an author-specified stylesheet also targets the same property, as it will be overridden.

Final Result

You can see the changes of my Reader View theme below. Use your own CSS rules to customize the design of your own personalized Firefox Reader View.

Before

Default Firefox Reader View
default Firefox Reader View

After

Customized Firefox Reader View
customized Firefox Reader View

If you want to dive deeper in the theme customization of Firefox tools, check out my previous tutorial on the customization of the Firefox Developer Tools theme.

The post How to Customize Firefox Reader View for Better Readability appeared first on Hongkiat.

5 Best E-book Readers & Managers

Posted: 01 Aug 2019 06:19 AM PDT

When we talk about reading on-the-go, I personally think that e-books readers are the best medium to do so. Although there are audiobook apps that you can carry in your smartphone, but those heavy audio files burden your phone and quickly eat up the battery (something you’d never want while traveling). On the other hand, e-book readers are easier to carry and convenient to read from.

So, if you’re up for getting yourself a nice e-book reader, take a look at this post that lists some of the best options in the market. I have highlighted each device’s features and negative aspects so you have an easy time making your pick. Let’s read along.

1. Kindle Paperwhite E-reader

Kindle Paperwhite is one of the most popular choices among e-book readers. Thanks to e-Ink technology, you get an impressive reading experience through the screen that mimics ordinary book pages. Moreover, as it is supported by a database of millions of e-books on Amazon, you can simply buy any book and have in on your device in seconds.

The Kindle Paperwhite E-reader has a glare-free screen that allows you to comfortably read even in direct sunlight making it a perfect reading device on a sunny day at the beach. Similarly, in a dark environment, its screen light is bright enough to read but won’t strain your eyes. Also, like other e-book readers, it offers you to read e-books and articles in landscape mode as well.

Kindle-Paperwhite-e-book-readers

It supports a lot of different formats, including PDF, Mobi, and RTF. However, unfortunately, it does not support ePub – one of the most popular e-book formats. In case you want to read ePub e-books on this device, you’ll have to convert the file into a Kindle Paperwhite-compatible format.

What I didn’t like about Kindle Papaerwhite is that there’s no power adapter included in the box which means that you’ll have to rely on some other cable which may or may not work. Moreover, this e-book reader is not waterproof and also takes a long time to charge. But once fully charged, it goes on for about a month with normal use.

Kindle-Paperwhite-e-book-readers

2. Kindle Oasis

Another e-book reader by Amazon, Kindle Oasis has a much larger display than its predecessors which is a noticeable difference. Though it is a bit expensive, however, it offers some of the most advanced features that justify its high price.

Kindle Oasis has a modern ergonomic design that makes it easy to hold and is quite lightweight (only 4.6 ounces). For those who still feel nostalgic about the buttons on the first generation of Kindles, in this model you’re going to find buttons to turn pages.

What is special about this particular device is that you can not only read e-books on it but also listen to hundreds of celebrities-narrated audiobooks while driving, cooking, or traveling. It has a glare-free high-resolution display that makes you feel like reading a physical book.

Kindle-Paperwhite-e-book-readers

With a huge storage capacity of 8GB, you can upload hundreds of e-books, magazine, newspapers, and audiobooks. It is also waterproof so you can take it to even more places to read.

Talking about cons, its biggest disadvantage is the high price which makes it the most expensive of all Kindles. Additionally, it takes ridiculously long time (about 21 hours) to charge, but once charged, the battery lasts for weeks.

Kindle-Oasis-e-book-readers

3. Kobo Aura H20 [$179.99]

If you are going on vacation to the seaside, you’ll be going to need a device which can withstand the waves. Kobo Aura H20 prides itself on being the best waterproof e-book reader as it can stand up to 1 meter of water for half an hour.

It features 6.8 inches glare-free screen with a high-resolution display, seamless page turns, and Carta e-Ink which is also used in Kindle Paperwhite. The device has automatic blue light adjustment feature for bright and dark environments as well as adjustment settings for the font size and margins – all of which gives you a great reading experience.

Kindle-Paperwhite-e-book-readers

Kobo Aura H2O is supported by Kobo store from where you can download any e-book you want from over 5 million titles. It also comes with a built-in dictionary, page highlight and notes-taking feature, along with a hefty storage of 8GB.

The downside of this device is that you cannot borrow e-books from a public library right on the device as it does not have Overdrive built into it. Also, it is larger and more expensive as compared to Kindle Paperwhite. But if you’re looking primarily for a weather-resistant device with great UI, this is the one for you.

kobo-aura-e-book-readers

4. Kindle Voyage E-reader

A third entry in this list by Amazon, Kindle Voyage is a slightly upgraded version of Kindle Paperwhite. It offers an excellent reading experience thanks to a sharper display, pixel-dense screen and the backlight feature that automatically adjusts to select the right level for the ambient light.

When it comes to the physical features, Kindle Voyage offers a premium rubberized design in comparison with the plastic design of Kindle Paperwhite. It is thin, light and comes with impressive PagePress buttons on the left to seamlessly flick pages. Also, it has an automatically rotating screen allowing you to use buttons if you are a left-hand person.

Kindle-Paperwhite-e-book-readers

The battery life of Kindle Voyage is impressive; you can use the e-reader for weeks without the need to recharge. Moreover, the e-book reader allows you to export notes and quotes to your email with ease and you can even set daily reading goals if you want.

A high price is one of its biggest negatives that makes it less affordable for an average reader. Also, like other Kindle devices, it does not support ePub e-book format and is strongly embedded into Amazon ecosystem. If you can live with that, then it is surely a great e-reader to have.

Kindle-Voyage-e-book-readers

5. Barnes & Noble NOOK GlowLight Plus eReader [$119]

One more e-reader which goes at the same price range as Kindle Paperwhite is Barnes & Noble. This is an Android-based device with a glare-free, fingerprint free, and dustproof screen. It has a 6-inch display with a soft glow that you can manually adjust to fit surrounding environment.

You can carry it to a beach or poolside thanks to the waterproof design. The device supports ePub and PDF, however, other favorite formats such as doc, docx, MOBI, and PRC are not supported. With a light weight and six weeks battery life you can carry it anywhere without

Kindle-Voyage-e-book-readers

Thanks to Android you can install third-party apps for the e-reader using USB cord. 4GB of memory is more than enough for thousands of books. You can create an account on Barnes & Noble store to access a great collection of curated titles.

When it comes to disadvantages, one can say that it does not have a great grip, mainly because of the aluminum back that makes it easier to slip and drop the device. But if you are looking for a truly waterproof e-book reader with some cool features, this device can be your pick.

5-barnes-nook

The post 5 Best E-book Readers & Managers appeared first on Hongkiat.

0 Response to "Top 3 for the day"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel