FF is NOT scriptable, so KM does not have the same access as it does with Safari and Chrome.
To get FF page data, see Get the Browser Page Title & URL for Safari, Chrome, or FireFox .
Given the URL, you can extract the Domain name using RegEx.
Since URL's can vary so much, the Regex's can be very complicated.
So, in this case we will use two steps to extract the Domain Name.
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
Please let us know if it meets your needs.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
Please let us know if it meets your needs.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Example Output
MACRO: Extract Domain Name from FireFox URL [Example]
==UPDATED==: 2020-07-12 17:51 GMT-5
- Fix Regex to handle "www"
- ADD Close Address Bar and Move to Page body
-~~~ VER: 1.1 2020-07-12 ~~~
Requires: KM 8.2.4+ macOS 10.11 (El Capitan)+
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))
DOWNLOAD Macro File:
Extract Domain Name from FireFox URL [Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.