The loadExtension method tells Brave where to locate the extension manifest. The second line contains the tState method this registers our extension. The first line is a simple comment for helping us find our way back if we ever get lost. LoadExtension( 'tabbycat', getExtensionsPath( 'tabbycat')) setState( 'tabbycat', extensionStates.REGISTERED) LoadExtension(config.braveExtensionId, getExtensionsPath( 'brave'), generateBraveManifest(), 'component')īeneath these lines, insert the following: // Enable Tabby CatĮxtensionInfo. setState(config.braveExtensionId, extensionStates.REGISTERED) To do this, open the app\extensions.js file, and locate the following lines: // Manually install the braveExtension and torrentExtensionĮxtensionInfo. We now need to register and load the Tabby Cat extension on startup. Register and Load the ExtensionĪt this point, we should have three folders in app\extension\: brave, torrent, and tabbycat. You can find an extension’s ID in the address bar when browsing the Chrome Web Store.įor brevity, I’ll rename the new folder to “tabbycat”. The second command calls CED, asking it to download the Tabby Cat (developed by extension via its unique ID. We’ll want to make sure we install the extension into app\extensions\: cd app\extensions Once installed, it’s time to get our extension. After downloading, CED will unpack the archive into the current directory. CED allows us to access the extension server, and pull down the packaged extension. This command performs a global install of the Chrome Extension Downloader (CED). Open a new terminal from the browser-laptop directory, and run the following command: npm install -g chrome -ext -downloader That’s too much work we’ll take a shortcut. Once installed, we have to go digging through our file system and move a handful of files. It’s time to download an extension!ĭownloading a Chrome extension usually starts by installing the extension in Chrome. If you haven’t already, close all instances of Brave, as well as both terminals. Now that we have a local copy of Brave’s source, and are able to run it, we can continue. You made it this far! Downloading Chrome Extensions Within a couple of moments, Brave should appear. Once the server has been stood up, switch to the second terminal, and run npm start. This launches the webpack developer server. Open two terminals, and run npm run watch from the first. With dependencies installed, take a quick break and enjoy the fruits of your labor. This will take a little longer than the cloning process, but shouldn’t last for more than a few minutes. Once completed, install the dependencies. I will be working out of my c:\ directory.Ĭontinue by running git clone from our target directory: git clone https: ///brave/browser-laptop.git We’ll start by cloning Brave’s browser-laptop repo onto our local machine.ĭetermine where you’d like to copy Brave’s source code onto your machine, and launch a terminal from that directory. Cloning Brave and installing dependenciesĪssuming you already have git, npm and node.js installed, getting started is straight-forward (if you encounter issues, see Getting Help below). With this knowledge, you can help us make Brave more compatible. My goal is to equip you with the information to explore this process with other extensions. Then we will download a Chrome extension, and load it into Brave. In this walk-through we’re going to clone Brave to our local machine, and install its dependencies. As such, they have the capacity to share many of the same extensions. Fortunately, Brave and Chrome share a common ancestor. For that type of functionality, users have to turn to a browser extension. For example, Brave doesn’t deliver playful, adorable kittens each time I open a new tab. Like all software, Brave has its limitations. Brave also includes safety benefits, like the prevention of fingerprinting and malware. Out of the box, Brave users enjoy fewer ads and trackers online. To find the most recent guide for using extensions in Brave, visit this page.īrave appeared on the scene last year and was quick to make a name for itself.
0 Comments
Leave a Reply. |