Show URLs when printing

by oduska

HTML

<p>
  Here is some text with a link <a href="https://google.com">here</a>, and you should also check out this <a href="https://www.cyan.com">amazing website</a>.
</p>

CSS

@media print {
  a::after {
    content: "[" attr(href) "]";
    margin-left: 0.3em;
    color: #666;
    text-decoration: none;
    display: inline-block;
  }
}