Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1.  
  2.  
  3. var jqry = document.createElement('script');
  4. jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
  5. document.getElementsByTagName('head')[0].appendChild(jqry);
  6. console.log('Loading...')
  7. setTimeout(function() {jQuery.noConflict(); console.log('jQuery loaded'); }, 1000);
  8. setTimeout(function() {
  9. jQuery.extend(jQuery.expr[':'], {
  10. 'containsi': function(elem, i, match, array) {
  11. return (elem.textContent || elem.innerText || '').toLowerCase()
  12. .indexOf((match[3] || "").toLowerCase()) >= 0;
  13. }
  14. });
  15.  
  16. jQuery('h3.tw-ellipsis:not(:containsi("nopixel"))').closest( "div.tw-flex-wrap > div" ).remove();
  17. console.log(jQuery('h3.tw-ellipsis:containsi("nopixel")').length+' Stream NoPixel Live!');
  18.  
  19.  
  20. jQuery("body").on('DOMSubtreeModified', ".tw-flex-wrap", function() {
  21. jQuery('h3.tw-ellipsis:not(:containsi("nopixel"))').closest( ".preview-card" ).remove();
  22.  
  23. jQuery( ".tw-flex-wrap .tw-relative > div:empty" ).remove()
  24. //jQuery( ".tw-flex-wrap .tw-relative:empty" ).parent().hide()
  25. console.clear();
  26. console.log(jQuery('h3.tw-ellipsis:containsi("nopixel")').length+' Stream NoPixel Live!');
  27. });
  28.  
  29.  
  30. console.log('Enjoy'); }, 2000);void(0);
  31. console.clear();
  32. var clr = function() {
  33. console.clear();
  34. jQuery( ".tw-flex-wrap .tw-relative:empty" ).parent().remove()
  35. console.clear();
  36. console.log(jQuery('h3.tw-ellipsis:containsi("nopixel")').length+' Stream NoPixel Live!');
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement