How to Execute Custom JavaScript on Every Page Refresh

How to Execute Custom JavaScript on Every Page Refresh