SHARE
TWEET

Untitled

a guest Oct 10th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. XF.FAShoutbox.socket.on(1, (data) => {
  3.     if( Shoutbox._isIgnored( data.userId ) ) {
  4.         switch( SETTINGS.ignore_type ) {
  5.             case "0": // replace with ignored
  6.                 let stMessage = $( data.html ).children( '.shoutbox-message-content' ).html();
  7.                 $( "#message-" + data.messageId ).children( '.shoutbox-message-content' ).html( "*ignored*" ).attr( 'title', stMessage );
  8.                 break;
  9.             case "1": // no message at all
  10.                 if( $( "#message-" + data.messageId ).length > 0 ) $( "#message-" + data.messageId ).remove();
  11.                 break;
  12.             default:
  13.                 break;
  14.         }
  15.     }    
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top