Implement the redirectUrl return in onBeforeRequest, and use RegEx instead of strings to check URLs to ignore