Retrieving webpage’s content(html,css) without login credentials

I’m currently trying to make a chrome extension where if the icon is clicked by the user it downloads all the html and css so I can modify the elements. However this extension is used in an html page where login(ID,password) is required. Is there a way to download the contents of the page(html,css) without knowing the user’s credentials?