kylepaulsen / ResourceOverride

An extension to help you gain full control of any website by redirecting traffic, replacing, editing, or inserting new content.
MIT License
470 stars 118 forks source link

Ability to add URL -> File rule from local file directory #54

Open vuciv opened 2 years ago

vuciv commented 2 years ago

This is an awesome tool :) Thanks for making it!

Is this at all possible? I know there are workarounds, but it would be great if I didn't have to copy and paste my build code into the extension each time I rebuilt.

If you're short on time, just some insight into whether or not this is possible would allow me to branch out and/or make a pull request.

Thanks!

kylepaulsen commented 2 years ago

This was something I wanted to do a long time ago when this was in active development. I can't remember 100% but I think I came to the conclusion that it wasn't possible at the time. I might have also thought it was something that would be annoying for the user. Maybe it would require the user to approve directory access often. I know there is file system access these days, so maybe it's possible now. I know that also requires user permission to whatever directory (cant remember if the preference sticks though).

I'm not sure if I'll have time to look into this however I do know that the requirement for extension manifest v3 is coming up very soon, so if I don't at least upgrade this extension to work with that, then this extension will be dead.