Open mallove opened 4 years ago
It's totally feasible. But I'm not sure whether it's worthwhile. Because below reasons:
It's totally feasible. But I'm not sure whether it's worthwhile. Because below reasons:
- The standalone extension needs some metadata like name, version, author, permission, etc. In order to do this, we need to add some UI to input such information.
- It's not immediately useable by just exporting a zip file. You need to register a chrome extension developer account (and pay the one-time registration fee) and publish it to the web store.
- After publishing to the web store, once you need to update the extension, you have to input all the fields again and maintain a proper version number. Otherwise, you can keep an old exported zip file and update it manually. But if one decides to do this, use another git repo seems a better approach.
Gotcha.
Maybe what I'm looking for is a central location for users to share useful CJS snippets ( a library, wiki, tips page?) E.g., I dislike those twitter share popovers that all the WordPress sites are using, so the below one-liner removes them from some sites. But I wonder if others have a better way of dealing with them.
$('#share-div").remove();
For the purpose, I suggest the Tampermonkey https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
and you can find and share scripts through these websites: https://www.tampermonkey.net/scripts.php
Not sure if something like this is feasible or worthwhile, but is there a way to export the custom javascript from this extension to a standalone extension?
So this
Export as Extension
button exports a zip file containing a manifest, a basic options page, etc.