ResourceOverride icon indicating copy to clipboard operation
ResourceOverride copied to clipboard

How to replace original HTML tags onload?

Open rogeriodec opened this issue 6 years ago • 1 comments

Thanks for this great plugin. I could not understand how do I exchange certain original tags to another tags? For example, how to change all tags from <meta> to <p>?

rogeriodec avatar Aug 17 '18 17:08 rogeriodec

This is not in the scope of ResourceOverride from what I understand.

You might want to look into Goolge Chrome DevTools Local Overrides to get what you need: https://developers.google.com/web/updates/2018/01/devtools#overrides

ResourceOverride lets you redirect the whole request - say for a js, css or image file - and send it elsewhere. A common usecase might be to redirect the request for a stylesheet (https://www.yoursite.com/styles.css) to a locally running webserver hosting this file (https://localhost/styles.css). Now you can edit the file locally and see the changes on your production site on page reload.

bernhardriegler avatar Nov 15 '19 10:11 bernhardriegler