Change permissions back to tabs from activeTab for now, reverted the getAutoProfileIdForUrl() function back to the original, attempt to use native selectors again instead of jQuery in content.js.