Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. var targetNode = document.getElementById('messages');
  2.  
  3. // Options for the observer (which mutations to observe)
  4. var config = { attributes: true, childList: true, subtree: true };
  5.  
  6. // Callback function to execute when mutations are observed
  7. var callback = function(mutationsList) {
  8.  
  9. $( "#messages tr:contains('慢慢洗')" ).css( "display", "none" );
  10.  
  11. };
  12.  
  13. // Create an observer instance linked to the callback function
  14. var observer = new MutationObserver(callback);
  15.  
  16. // Start observing the target node for configured mutations
  17. observer.observe(targetNode, config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement