chat2 Install You shoul inject plugin at the begining of each page <script src="path/chat.js"></script> Usage In content script chat.emit("alert", 1); In devtools page chat.on("alert", function(data){ alert(data); // alerts 1 });