Menu

Audit Outbound Links on the Page Readers Actually Get
📰

Audit Outbound Links on the Page Readers Actually Get

DEV Community: html·Whispart Studio·8 days ago
#3stWtAHS
#devto2#devto#dev#anchor#whispart
Long article (332 words) — no AI summary yet.
Reading 0:00
15s threshold

Whispart Studio publishes process notes alongside physical wall art developed from selected GAN images. When an article links to one of those notes, the public permalink is the place to check the link. A publishing editor can change an anchor after a draft is saved.

Read the actual anchor

Open the published page in a signed-out window, then run this snippet in its developer console. It resolves relative URLs through the anchor element and compares host names directly. A link with the domain written into a redirect query string will land in a separate review.

const host = "whispart.com" ; const matches = [ . . . document . querySelectorAll ( "a[href]" ) ] . filter ( a => [ "http:" , "https:" ] . includes ( a . protocol ) ) . filter ( a => a . hostname . replace ( /^ www \ . / , "" ) === host ) . map ( a => ( { text : a . textContent . trim ( ) , href : a . href , rel : a . rel . toLowerCase ( ) . split ( / \ s +/ ) . filter ( Boolean ) } ) ) ;

console .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.