Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean-links

A small experiment to test out Golang myself.

A CLI application that:

  1. Accepts one or more paths
  2. Walks through all HTML files
  3. Looks for <a> elements
  4. Add referrerpolicy="noreferrer" attribute
    • referrerpolicy="noreferrer" will imply referrerpolicy="noopener" for most modern browsers (ref)

Future improvements:

Usage

  1. Download the TGZ package from releases
  2. Unpack the TGZ file
    • tar xzf clean-links-*.tgz
  3. For Linux based distribution, just call ./clean-links
  4. For Windows based distribution, just call ./clean-links.exe
  5. For MacOS based distribution:
    1. Get the binary out of quarantine with xattr -d com.apple.quarantine clean-links
    2. Just call ./clean-links

About

Adds referrer policy to HTML link elements

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages