Advertisement
Guest User

Untitled

a guest
May 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. var jqry = document.createElement('script');
  2. jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
  3. document.getElementsByTagName('head')[0].appendChild(jqry);
  4. setTimeout(function() {
  5. jQuery.noConflict();
  6. $ = jQuery
  7. alert('applied color');
  8. setInterval(function() {
  9. $('body *').each(function() {
  10.  
  11. if ($(this).css('font-size') == '16px' && $(this).clone() //clone the element
  12. .children() //select all the children
  13. .remove() //remove all the children
  14. .end() //again go back to selected element
  15. .text() != '') {
  16. $(this).css('background', 'pink')
  17. }
  18. })
  19. }, 2000)
  20.  
  21. }, 2000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement