z0
Web Dev SnippetsThe <HEAD>
of this page contains the complete collection
of z0
snippets. Just click the buttons in the sections below to
try them out. When you’re ready to use a z0
snippet, copy-paste
its code into the <HEAD>
of your own web page or web app.
See the documentation for more information.
z0s()
stylesheet injection
<style></style><script>!function(l,h,n,i,e,q){e=l[l.length-1],q=e.removeRule
e.d=q||e.deleteRule;z0s=function(s,r){i=h[s];i+9?e.d(i):i=h[s]=n++;q?e.addRule
(s,r,i):e.insertRule(s+'{'+r+'}',i)}}(document.styleSheets,{},0)</script>
<H2>
element will change when you click the top or
bottom row of buttons
<DIV>
has the class changeme
, and will
change when you click the middle or bottom row of buttons