We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The :external selector filters elements whose href or src attribute is an external link (same domain or relative path).
:external
href
src
The domain for relative paths is determined by Document.location.
Document.location
document.querySelectorAll('a:external'); // get all external links