DennisSnijder / MakeGithubGreatAgain

Extension for making GitHub great again
https://chrome.google.com/webstore/detail/makegithubgreatagain/gpejlkhibgecggplgogpbgbdpnhogmhk
1.05k stars 49 forks source link

Broadcasting to the content scripts #30

Open danbovey opened 7 years ago

danbovey commented 7 years ago

Hey

Just something that might be helpful towards this comment:

// Chrome doesn't have an easy way to broadcast a message to all // content scripts, so just broadcast the message to every tab // and rely on Chrome's manifest permission to restrict

You can totally do this with the chrome.runtime API 🎉

https://developer.chrome.com/extensions/runtime#method-sendMessage