Hacker News new | ask | show | jobs
by JohnAaronNelson 1279 days ago
Seems like it would be fairly easy to use this pseudo selector, and apply it to every element on the page. Making them show up as empty to the user
1 comments

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!