Skip to content
Search

Google Chrome

lastmod 2026-05-28created 2015-05-3055 edits

Google Chrome is a freeware web browser developed using the WebKit layout engine. Google Chrome aims to provide a simple and efficient user interface and to offer better stability, speed, and security than other existing web browsers. A beta version for Microsoft Windows was released on September 3, 2008, and the first stable version was released on December 11, 2008. The word chrome originally refers to the window frame in a graphical user interface; here it refers to the browser frame area, and the browser was reportedly named Chrome with the goal of minimizing this area. According to StatCounter statistics, as of 2012 it is the most widely used web browser in the world.

Categories

Plugins

Command Menu

Press F12 to open the developer screen. Press Shift + Ctrl + P there to bring up the Command Menu popup.

  • Screenshot - Take screenshots; capturing only a specific node is also possible.
  • Coverage - Shows the usage percentage of files.
  • Sensor - Can simulate gyro, GPS, etc.
  • Block adds - Simulates ad removal

DevTools

See Chrome DevTools for details.

List of special pages (Special pages)

chrome://webrtc-internals/
You can check profile information during WebRTC playback.
chrome://flags
Check the list of flags enabled in Chrome.
chrome://version
Shows the Chrome version and the list of applied flags.
chrome://net-export/
Captures network logs.
chrome://net-internals/
Has Events, Proxy, DNS, Sockets, and Domain Security Policy menus.
In particular, the HSTS (HTTP Strict Transport Security) settings that force HTTPS are here.
If a specific domain annoyingly keeps being forced to https, enter that domain under "Delete domain security polices" in the Domain Security Policy menu and delete it.

Install on CentOS

Add a new Google repository at /etc/yum.repos.d/google-chrome.repo as follows.

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

You can now install it as follows.

$ yum install google-chrome-stable

Disable JavaScript

Follow the steps below.

  1. Open the developer tools.
  2. Open the "Command Menu" with Control+Shift+P or Command+Shift+P (Mac).
  3. Type Disable JavaScript.
  4. Type Enable JavaScript to restore the original state.

Install on Ubuntu

$ 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 install google-chrome-stable

Flags

--app=[URL]
You can run Chrome in application mode. (The Address Bar disappears when using Application Mode)
Stackoverflow - How do you hide the Address bar in Google Chrome for Chrome Apps?
--incognito
Uses incognito mode.
--no-sandbox
Disables the sandbox for all process types that are normally sandboxed. Meant to be used as a browser-level switch for testing purposes only. 1
--disable-dev-shm-usage
The /dev/shm partition is too small in certain VM environments, causing Chrome to fail or crash (see http://crbug.com/715363). Use this flag to work around this issue (a temporary directory will always be used to create anonymous shared memory files). 2
--disable-javascript
Disables JavaScript.

Printing PDF with Chrome

google-chrome --headless --disable-gpu --no-sandbox --no-pdf-header-footer --print-to-pdf="${pdf_file_path}" "${html_file_path}"

JAVA Plugin

Describes how to install the JAVA Plugin in Google Chrome.

Install Firefox / Google Chrome Java Plugin for Fedora 17

Describes how to run the Java plugin for Google Chrome on Fedora 17 (there is an issue where it does not run even when installed correctly).

Download and install JAVA, then find the location of libnpjp2.so.

$ sudo updatedb
$ locate libnpjp2.so

Create a symbolic link. (Paste the path of libnpjp2.so in place of {NPJP2_PATH}.)

## Firefox Users:
$ cd /home/user/.mozilla/plugins (replace user with your username)
$ ln -s {NPJP2_PATH}

## Chrome Users:
$ cd /opt/google/chrome/
$ mkdir plugins
$ cd plugins
$ ln -s $PATH/libnpjp.so

Running JAVA in Chrome on Mac OSX

Once Java 7 is installed on Mac OS X, the Java plugin can no longer be used in Chrome. This is because Chrome is a 32-bit application and does not support the 64-bit Java 7. You could simply not use Java 7, but sometimes that is not possible for reasons such as development. This is a workaround for such cases. Since Java 6 remains and is not removed even after Java 7 is installed, the fix swaps only the internet plugin file back to Java 6.

#!/bin/sh

# Checks for backup directory for Java 7 plug-in
# and creates it if needed.

if [ -d "/Library/Internet Plug-Ins (Disabled)" ]; then
     echo "Backup Directory Found"
  else
     mkdir "/Library/Internet Plug-Ins (Disabled)"
     chown -R root:wheel "/Library/Internet Plug-Ins (Disabled)"
fi

# If a previous version of the Java 7 plug-in is already 
# in the backup directory, the previously backed up Java 7 
# plug-in is removed.

if [ -d "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin" ]; then
      rm -rf "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin"
fi

# Moves current Java 7 plug-in to the backup directory

if [ -d "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" ]; then
     mv "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin"
fi

# Create symlink to the Apple Java 6 plug-in in
# /Library/Internet Plug-Ins 

ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

# Re-enable Java SE 6 Web Start, which allows Java 
# applets to run in web browsers

ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws

exit 0

List of Plugin

Chrome youtube downloader
http://userscripts.org/scripts/show/62634
A script that lets you download YouTube videos in Chrome.
Chrome Mouse Stroke
http://code.google.com/p/chrome-mouse-stroke/
A plugin that lets you use mouse gestures in Chrome.

Troubleshooting

Target Packages (main/binary-amd64/Packages) is configured multiple times

If you see the following warning message when running apt update

Target Packages (main/binary-amd64/Packages) is configured multiple times

this is because the Google Chrome package creates a special file /etc/apt/sources.list.d/google-chrome.list; deleting this file fixes it.

sudo rm /etc/apt/sources.list.d/google-chrome.list

Backspace input not working in Korean IME

The problem appeared after upgrading Chrome to Version 135.0.7049.84 (Official Build) (64-bit). Apparently people fixed it by downgrading to 134... -_-;; Sigh..

See also

  • Java
  • Firefox
  • eruda - Provides features like Chrome's developer tools in mobile browsers
  • litehtml
  • Autotab - A tool that turns complex web tasks into APIs
  • webreel - A CLI tool that automatically records browser demos as MP4 videos

Favorite site

Article

  • Chrome 131 adds the Direct Sockets API | GeekNews
    • Direct Sockets API - Chrome Platform Status
    • Lets isolated web apps communicate directly with network devices and systems over TCP and UDP, and lets web apps listen for and accept incoming connections
    • Many network devices use their own protocols over TCP or UDP instead of HTTPS
      • Like WebUSB, WebMIDI, and WebBluetooth, this API lets web apps communicate with local devices and information systems
    • Isolated Web Apps (IWA)
      • Extends existing work on PWA installation and web packaging; provides stronger protection against server compromise and other tampering
      • Packaged as web bundles instead of being hosted on a live web server and fetched over HTTPS
      • Currently, IWAs can only be installed via administrator policy on enterprise-managed ChromeOS devices
    • Literally for enterprise use only
    • [Original] Raw Sockets API · Issue #431 · mozilla/standards-positions - They opposed it on the grounds that it could be used for malicious purposes.
  • A proposal to restrict sites from accessing users' local networks | GeekNews
    • [Original] explainers-by-googlers/local-network-access: A proposal to restrict sites from accessing a users' local network without permission
    • The Chrome security team proposes a new "local network access permission" scheme to address websites accessing local networks
    • Currently, public websites can potentially access or attack local network devices such as the user's printer without authorization; this proposal aims to block local network requests without the user's permission
    • Unlike the existing Private Network Access (PNA), it works based on user permission consent instead of preflight, strengthening user control, and can be addressed with site updates alone, without device changes
    • Specifically, when a public site makes a fetch request to a local IP, a .local domain, etc. without permission, the browser shows the user an explicit consent prompt
    • This policy strengthens security and privacy while ensuring that legitimate use cases such as IoT device setup work normally once the user grants permission
  • Chrome Prompt API | GeekNews

References


  1. Original: Disables the sandbox for all process types that are normally sandboxed. Meant to be used as a browser-level switch for testing purposes only. ↩

  2. Original: The /dev/shm partition is too small in certain VM environments, causing Chrome to fail or crash (see http://crbug.com/715363). Use this flag to work-around this issue (a temporary directory will always be used to create anonymous shared memory files). ↩

author Zer0 sitemap