browser brave code example
Example 1: install brave browser download
sudo apt install apt-transport-https curl
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
Example 2: browser
is a UI (like curl or wget) that downloads (or reads from cache)
.html(structure) XML nested DOM elements
.css(style) rules target selectors=>elements => computed styles
.js(function) messes it all up
calculates layout layers boxes repaintable (video, animation)
composits a page partially in the viewport using standards https://www.w3.org/standards/)
with http (not ftp) https://en.wikipedia.org/wiki/Category:Application_layer_protocols)
and may store a variety of information (data, history, passwords)
CHROME a UI (bars, buttons) <= key, mouse, voice, image inputs
uses chromium/blink an "rendering engine" that parses html=>DOM => computed styles
uses V8(interprets, compiles, optimizes javascript to machine code)
has EXTENSIONS
has DEVTOOLS
has STORAGE
runs natively (not in a browser :)
Example 3: brave browser
sudo apt install apt-transport-https curl gnupg
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
Example 4: brave web browser
sudo pacman -S brave
sudo pacman -S brave-beta