Hacker News new | ask | show | jobs
by aaviator42 168 days ago
I used this to implement <yes-script>, the opposite of <noscript>, to be able to designate sections of a page to be hidden if JS was disabled. You can of course do the same thing with classes, but custom tags are fun.

https://github.com/aaviator42/yes-script

1 comments

By the way, you can also do this pure CSS using the scripting media feature: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
I didn't know this existed. Thanks for sharing! Very useful api
I would suggest not using this as it's not compatible with NoScript