chrome-ext
Chrome Extension some usable things
It is not replacement of chrome object but only helpers joined into object.
Synopsis
thischrome =// execute on chrome extension is loadedthischrome// execute on chrome extension is unloadedthischromelet script = `var timerId = undefinedvar doWork = function() {if(...) clearInterval(timerId)var error = undefinedcallback( error, 'result', response => {console.log('done: ' + responce)})}timerId = setInterval( doWork, 500 )`// callback callthischrome// async callconst result responce = await thischromethischromeconst tabs = await thischromethischromeconst tabs = await thischromethischromeconst tab = await thischromethischromeconst tab = await thischromethischromeawait thischrome