This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <sal.h> | |
#include <assert.h> | |
#ifdef _X86_ | |
#error "This snippet only build in 64-bit due to heavy use of uintptr arithmetics." | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector( '#robinChatMessageList' ).addEventListener( 'DOMSubtreeModified', function ( event ) { | |
var messages = event.target.querySelectorAll( '.robin-message' ); | |
var lastMessage = messages[ messages.length - 1 ]; | |
if ( lastMessage ) { | |
var author = lastMessage.querySelector( '.robin--username' ); | |
var message = lastMessage.querySelector( '.robin-message--message' ); | |
if ( message && message.innerHTML ) { | |
message_text = message.innerHTML.toLowerCase(); |