Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // #1
- $(document.getElementById("me")).blue();
- // #2
- $(document.querySelector(".wants-to-be-blue")).blue();
- // #3
- $(document.createTreeWalker(document, NodeFilter.SHOW_COMMENT, null, null).nextNode().parentNode).blue();
- // #4
- var tw = document.createTreeWalker(document, NodeFilter.SHOW_COMMENT, null, null), comment;
- while (comment = tw.nextNode())
- $(comment.parentNode).blue();
- // #5
- [].slice.call(document.getElementsByTagName("div")).sort(function(a, b) {
- return a.textContent - b.textContent;
- }).forEach(function(div) {$(div).blue();});
- // #6
- [].forEach.call(document.querySelectorAll("div:not(.bomb)"), function(div) {$(div).blue();});
- // #7
- setTimeout(function(){
- $(document.querySelector("div")).blue();
- }, 1010);
- // #8
- document.querySelector("button").click();
- $(document.querySelector("div")).blue();
- // #9
- document.getElementById("map").textContent.split(" ").forEach(function(div) {
- $(document.getElementById(div)).blue();
- });
- // #10
- setInterval(function() {
- [].forEach.call(document.querySelectorAll("div:not(.bomb)"), function(div) {
- $(div).blue();
- });
- }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement