Example of using chrome.webRequest API. This was done using the following docs: https://developer.chrome.com/extensions https://developer.chrome.com/extensions/webRequest