Skip to content

Instantly share code, notes, and snippets.

@trauber
Created March 14, 2013 17:11
Embed
What would you like to do?
javascript:styles='body%20{%20/*%20this%20is%20the%20element%20that%20will%20reset%20the%20numbers%20*/%20counter-reset:%20paragraphs%200;%20/*%20identifier%20&%20starting%20number%20*/%20}%20p:before%20{/*%20the%20element%20to%20receive%20the%20numbering%20*/%20counter-increment:%20paragraphs%201;%20/*%20identifier%20and%20increment%20value%20*/%20content:%20counter(paragraphs,%20decimal)%20".%20";%20/*%20identifier,%20number%20type,%20and%20what%20follows%20the%20numbering%20*/%20}';%20newSS%20=%20document.createElement('link');%20newSS.rel%20=%20'stylesheet';%20newSS.href%20=%20'data:text/css,'%20+%20escape(styles);%20document.documentElement.childNodes[0].appendChild(newSS);%20void%200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment