6 ms·
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
by aaviator42 9mo 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 https://github.com/aaviator42/yes-script
- Joeri 9mo agoBy the way, you can also do this pure CSS using the scripting media feature: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/scripting https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
- rebane2001 9mo agoI would suggest not using this as it's not compatible with NoScript
- riknos314 9mo agoI didn't know this existed. Thanks for sharing! Very useful api