For WebExtensions, there are several methods to check a page's URL:
window.location.hrefin a content script,- the
webRequestAPI, and tabs.onUpdated.
Which one to use when you just need to check the URL, and maybe redirect based on it? Which is easiest to code? Are there reasons for using the others?