listen for messages from content.js
remove some data for rule extraction
restore event handling