Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements that can be added - RegexReplacer + cloud sync (Forked and fully working version is available with all code) #51

Open
starkapandan opened this issue Aug 3, 2021 · 0 comments

Comments

@starkapandan
Copy link

Hi, thanks for an awesome extension, there was some important features specifically for me that was missing and that no other plugin had so i really had no other options than to code it by hand.

I created a forked version(https://github.com/starkapandan/ResourceOverride) and would one day possibly see these features added to the real plugin.

The most important one here is a regex live file replacer(please check readme on fork for exact details) instead of fileoverride.
The issue with file override is that once developers update their script it simply breaks the site when overriding with old fileoverride.
A regex replacer handles this case perfectly by always fetching up to date script and before its loaded into website uses regex replacing of certain sections.

All of this functionality is available in the fork for you to copy paste if you would have time, i simply placed under a new rule called "filereplacer" so other type of rules are untouched. Obviously migrating this over to here would be a little more work than copy and paste, but the functionality is already coded for that specific rule only, and can be added with fairly little work.

Now another one that would be awesome to see is some form of cloud sync. I know that this is currently impossible with chrome.storage.sync since it has such low quota for fairly large settings BUT, in my forked version i have managed to this in a fairly simple way, just to maybe illustrate a possible workaround (only works if it's loaded in chrome settings "load unpacked plugin"). To accomplish this, i placed all of the settings DIRECTLY in a file called config.js in same directory as the plugin. Now if you place the whole plugin into a dropbox/onedrive/googledrive synced folder, and load plugin directly from there into chrome. you will have the plugin + all settings synced to all your computers.
And if you want to change settings, this is done in the config.js file instead of the webui or developers tab.

@starkapandan starkapandan changed the title Improvements that can be added - RegexReplacer + cloud sync (Forked and fully working version available with all code) Improvements that can be added - RegexReplacer + cloud sync (Forked and fully working version is available with all code) Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant