Reworked this plugin to be a content script