Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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;}


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: