content script for tests
undo + event handlers