I am developing an extension for google chrome and I needed a function to track user activity (online / offline). This is necessary so that 1 user can use the extension duri