I would like to create an extension that adds extra pages to and existing website. For example, I would like to add https://stackoverflow.com/statistics to stackoverflow so I can populate it with custom statistics.
Can this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible. You can either use redirection (
chrome.webRequest.onBeforeRequest), or rewrite/add controls to the current page using content scripts. When you pick the latter option, the page must “exists” though. A 404 error page is OK, but a non-existent domain will fail (because Chrome will then display their own error page, and these cannot be scripted).