Chrome: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 19: Line 19:


Right click -> Inspect -> Network.
Right click -> Inspect -> Network.
=Hard Refresh=
Command + Shift + R
=Delete History=
More -> History -> History or Command Y
Clear browsing data.
==Clear Cache==
Press ⌘-Shift-R on a Mac.
=How to Display Bookmark Bar=
Three stacked dots (More) -> Bookmarks -> Show Bookmarks Bar.
=Allow Popups=
Vertical dots menu → Settings → Advanced (bottom of the page) → Privacy section → Site Settings -> Pop-ups and redirects: Allowed.
=Extensions=
* [[AWS Extend Switch Roles]] Extension
=Console=
Option - Command - I
==Capture a REST Invocation as curl Command==
Start the console as shown [[#Console|above]] and execute the JS code that triggers the REST invocation.
Then go to the "Network" tab, select the request associated with the REST invocation, right-click Copy Copy as cURL. The curl command will be available in the buffer.
=Installation=
=Chrome Development=
==Get Chrome Version==
google-chrome --version
==Get Chrome Driver Version==
{{Internal|Google_Chrome_Driver#Version|Google Chrome Driver | Version}}
==Upgrade Chrome and Chrome Version in Container==
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
sudo apt-get install libnss3-1d
sudo pkill -15 google-chrome
sudo pkill -15 chrome
sudo apt-get install curl
version=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget -qP "/tmp/" "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"

Latest revision as of 05:09, 18 November 2021

Internal

Malware Removal

Chrome -> crome://policy

If the browser is infected, there will be unknown policies (WeKnow). From a terminal:

defaults write com.google.Chrome HomepageIsNewTabPage -bool false
defaults write com.google.Chrome NewTabPageLocation -string "https://www.google.com/"
defaults write com.google.Chrome HomepageLocation -string "https://www.google.com/"
defaults delete com.google.Chrome DefaultSearchProviderSearchURL
defaults delete com.google.Chrome DefaultSearchProviderNewTabURL
defaults delete com.google.Chrome DefaultSearchProviderName

Web App Debugging

Right click -> Inspect -> Network.

Hard Refresh

Command + Shift + R

Delete History

More -> History -> History or Command Y

Clear browsing data.

Clear Cache

Press ⌘-Shift-R on a Mac.

How to Display Bookmark Bar

Three stacked dots (More) -> Bookmarks -> Show Bookmarks Bar.

Allow Popups

Vertical dots menu → Settings → Advanced (bottom of the page) → Privacy section → Site Settings -> Pop-ups and redirects: Allowed.

Extensions

Console

Option - Command - I


Capture a REST Invocation as curl Command

Start the console as shown above and execute the JS code that triggers the REST invocation.

Then go to the "Network" tab, select the request associated with the REST invocation, right-click Copy Copy as cURL. The curl command will be available in the buffer.

Installation

Chrome Development

Get Chrome Version

google-chrome --version

Get Chrome Driver Version

Google Chrome Driver | Version

Upgrade Chrome and Chrome Version in Container

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
sudo apt-get install libnss3-1d
sudo pkill -15 google-chrome
sudo pkill -15 chrome
sudo apt-get install curl
version=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget -qP "/tmp/" "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"