Reworked to use webRequest instead of debugger permissions