Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <title>Foo</title>
- <div style=white-space:pre>
- <i>foo bar lorem ipsum</i>
- <i>foo bar lorem ipsum</i>
- <i>foo bar lorem ipsum</i>
- <i>foo bar lorem ipsum</i>
- <i>foo bar lorem ipsum</i>
- <i>foo bar lorem ipsum</i>
- </div>
- <script>
- Element.prototype.css=function(a,i,n){for(n in''+a===a||a)this.style[n]=a[n];return i||n?(this.style[a]=i,this):getComputedStyle(this)[a]};
- Object.getOwnPropertyNames(Element.prototype).forEach(function(a){
- NodeList.prototype[a]=function(){for(var n in this)this[n][a].apply(this[n],arguments)}
- });
- Object.getOwnPropertyNames(NodeList.prototype).forEach(function(a){
- String.prototype[a]=function(){document.querySelectorAll(this)[a].apply(document.querySelectorAll(this),arguments)}
- });
- "div>i".css({color:"red"})
- </script>
Add Comment
Please, Sign In to add comment