Hacker News new | ask | show | jobs
by DoctorOW 1280 days ago
You could add a data attribute to the html tag of the document with the current URL, I.E.

  <html data-path="https://www.saashub.com/about">
then hide the full page with:

  html {display: none;}
  html[data-path*="saashub.com"] {display:block;}
1 comments

This seems quite elegant and easy. Obviously in addition to other measures, but I like it.
Honestly this is my favorite HN post in a while I've had a lot of fun thinking over this challenge.
I'm with you, too!