rNeomy / reader-view

Access Firefox's built in reader view from right click context menu
https://webextension.org/listing/chrome-reader-view.html
Mozilla Public License 2.0
482 stars 75 forks source link

How to show only main domain on URL? #116

Open aldricha opened 3 years ago

aldricha commented 3 years ago

Hi there. I'm wondering if it is possible using CSS to have the reader view show only the main URL domain instead of the entire link? For instance, if reading a NYTimes article, how do I change it so that the URL at the top shows only "nytimes.com" instead of the full URL? Thanks!

rNeomy commented 3 years ago

Try to append the following to the "Custom styling (reader view)" section of the options page.

#reader-domain > span:last-of-type {
  display: none;
}
aldricha commented 3 years ago

Worked! Thank you!