How to modify an extension from the Chrome Web Store?
You've got two options:
- Contact the extension's developer, and ask for assistance.
- Edit the source code
I'm going to explain how you can modify an extension, and install it, in easy terms.
Getting the source and modifying it
- Install the Chrome extension source viewer.
- Go to the page in the Chrome Web Store of the extension you want to modify.
- Click on the yellow CRX button, and choose Download (screenshot).
- Extract the zip file.
- Read the source code, and change what needs to be changed (in your particular case, I had quickly identified that you wanted to change edit
config.js
and change the"channel"
property). Save the changes.
Using the modified version of the extension.
- Visit the Chrome extension page (
chrome://extensions/
). - Enable Developer mode, by activating the switch in the upper-right corner.
- Click on the "Load unpacked extension" button.
- Select the folder of your extension (to know which folder is correct, check whether the folder contains a file called
manifest.json
). - Confirm. You're done.
Unless you've made a mistake in either of these steps (including the modification of the source code), the modified extension should work as intended.
Ethics
Modifying someone else's extension for personal use is not a big deal. However, do not distribute this extension without the original developer's consent. The original author has put lots of efforts in creating the extension, and might even have his/her contact details on it. If you distribute a (modified) copy of the extension, the original author cannot update the extension any more, so s/he cannot resolve bugs.
Even worse, if you turn the extension in a bad shape, users will complain to the original author, because their contact details are on it.
Alex_dlc
Updated on March 16, 2020Comments
-
Alex_dlc about 4 years
I've seen this extension in the Chrome Web store, which shows the newest videos of a YouTube channel. I want to modify this extension in order to make it work with a different channel.
How can I get this done?
-
Mo Beigi over 8 yearsWorks great, had to use this solution to solve a little issue I had when loading the unpacked extension: stackoverflow.com/a/29848882/1800854
-
Mo Beigi over 8 yearsThe above solution is not ideal as it messes up the locale. I ended up using this method to modify the extension: stackoverflow.com/a/27081397/1800854 Worked perfectly!
-
Rory O'Kane almost 7 yearsTo summarize @Mohammad's links, if when loading the extension you get an error about not being able to read the folder
_metadata
because it starts with an underscore, the fix is just to delete the_metadata
folder and retry. You don't need to do anything with the_locales
folder. -
JackHasaKeyboard over 6 yearsWhy are the folders for the extensions named random characters? That's painful.
-
Metagrapher almost 6 yearsThe file names are not intended to be human readable. It's intended for resource collision avoidance and for dependency management. This is what is called "reverse engineering". It's not meant to be easy, nor for the faint of heart. It's not meant to be done.. but that's also what makes it one of the most valuable ways to learn.
-
Adam F over 5 yearsIs there any way to do this with a developer extension?
-
merhoo almost 5 yearsCRX did not download the extension for me, anyone else have this problem and potential solutions?