deathau / markdownload

A Firefox and Google Chrome extension to clip websites and download them into a readable markdown file.
Apache License 2.0
2.65k stars 202 forks source link

Getting the base domain #81

Closed Nebucatnetzer closed 2 years ago

Nebucatnetzer commented 3 years ago

I would like to tag my clips with the source domain. Therefore it would be nice to have the possibility to extract the base domain of an article.

For example https://www.theverge.com/2021/5/3/22417725/apple-vs-epic-full-trial-slideshows-opening-arguments would become theverge.com

Nebucatnetzer commented 3 years ago

I just noticed that it isn't possible to use a tag with a dot (theverge.com) in Obsidian so maybe it is possible to only get the domain without the top level domain? However since Obsidian just ignores the top level domain the full domain would still work.