![]() To install web-ext we can run: $ npm install -g web-ext To be able to invoke utilities installed this way, the ~/.local/bin directory must be added to the user PATH. The software installed via npm using this configuration will be available only for the user who performs the installation. Here is the content of our manifest.json: /.local directory. There are many keys we can use in the file, however for our example only few of them will be necessary. ![]() Inside this json formatted file, we must specify metadata and functionalities of our extension. Once the directory is in place, we must create the most important file for our extension, which is manifest.json. We will call our extension “linuxconfig-search”, and we will use the same name for the directory that will host the extension files: $ mkdir linuxconfig-search The first thing we want to do is to create a directory for our project. The purpose of our extension is very simple and so is its implementation: all it must do is allow us to search highlighted text in a webpage inside the site as if we were using the dedicated search bar. $ – requires given linux commands to be executed as a regular non-privileged user # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command Knowledge of the Javascript programming language The web-ext utility to package and sign the extension Requirements, Conventions or Software Version Used Software Requirements and Conventions Used Software Requirements and Linux Command Line Conventions Category
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |