You should look into chrome.webRequest
and its samples.
They will achieve exactly what you need: you detect an attempt to open a page in onBeforeRequest
in your background script, analyze the request and optionally redirect it to your page implementing your logic.
See CatBlock sample here for a starting point.