Chrome notes

From raju

favorite configuration on desktop

restore previous session

chrome://settings/onStartup -> check "Continue where you left off"

or

Settings -> On startup -> check "Continue where you left off"

or

Settings -> On startup -> Manage on startup pages -> Pages to open on startup -> check "Continue where you left off"

or

chrome://settings/startupUrls -> Manage on startup pages -> Pages to open on startup -> check "Continue where you left off"

disable notifications

  • chrome://settings or Menu -> Settings
    -> Show advanced settings -> Privacy -> Content settings ->
    • Location -> "Do not allow any site to track your physical location"
    • Notifications -> "Do not allow any site to show notifications"

disable video auto play

  • Disable automatic playing of videos on facebook.com using this extension. Once the extension is installed, hide the icon in the toolbar by right clicking on it -> select "Hide in Chrome menu".

Show the bookmarks toolbar

Settings -> Appearance -> Show bookmarks bar -> slide right

Set chrome as default web browser

Settings -> Default browser -> make chrome the default

After this, clicking on links in outlook will open them in chrome.

show home button

Settings -> Appearance -> Show Home button -> slide it right.

Set the home page to https://millionshort.com which is a search engine similar to Google.

Configuration

set up custom search engines

Right click in the address bar -> Edit search engines
or
preferences button -> Settings -> Settings -> Search -> Manage search engines
Add a new search engine Keyword URL with %s in place of query
Wikipedia.org wiki https://www.wikipedia.org/search-redirect.php?family=wikipedia&language=en&search=%s&go=&go=Go
raju.shoutwiki.com rwiki http://raju.shoutwiki.com/wiki/Special:Search?search=%s&go=Go

To access the search engines, enter the keyword in the address bar and press tab.

Another easy way to add a custom search engine is to go to the website, right click on the search bar -> select "Add as search engine..." -> edit the fields if necessary -> ok

Manage passwords

Settings -> Show advanced settings -> Passwords and forms -> Manage passwords

Blocking ads

  • uBlock Origin. It was mentioned in http://www.enricozini.org/blog/2016/i-chipped-in/

Store bookmarks in a different location

start google chrome with --user-data-dir

    "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome\Google Chrome.lnk" --user-data-dir="D:\chrome\profile1"
    

which will store all the bookmarks somewhere under D:\chrome\profile1.

Default bookmarks location: 'C:/Users/<username>/AppData/Local/Google/Chrome/User Data/Default/Bookmarks'

Ref:- https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md

tags | where does chrome store bookmarks?, change default bookmarks location

sort after

save pdf files instead of opening them directly

    Settings -> Advanced -> Privacy and security ->
    Content Settings -> PDF documents ->
    Download PDF files instead of automatically opening them in Chrome -> turn on
    
    Settings -> Advanced -> Downloads ->
    Ask where to save each file before downloading -> turn on
    

Useful links

  • chrome://settings/syncSetup - to sync passwords across chrome sessions over different machines

Open multiple websites in chrome

delete autocomplete entry

highlight the link of interest -> shift+delete

restart chrome browser

If you type “chrome://restart” into the Chrome browser, it’ll restart the browser and re-open tabs. Use this trick if the connection is slow or if the browser does not load properly.

clear cache for just one website

chrome://settings/siteData -> search for the website -> delete it

Install an extension without admin privileges

  • Download the extension
    cd $software
    mkdir -p downloads unzipped
    
    cd downloads
    mkdir $extension
    cd $extension
    
    curl -L https://github.com/$user/$repo/archive/master.zip -O
    unzip master.zip -d ../../unzipped
    cd ../../unzipped
    mv $extension $extension_asof_`date +'%Y%m%d_%H%M%S'`
    
  • Add it to chrome
    • chrome://extensions -> Enable "Developer mode"
    • Drag the extensions folder above into it

Note:- The extension folder should contain manifest.json in it.

Match whole words

Problem
There is no way to search for "whole words" on a web page in Chrome. For example, it is not possible to search for "all" but exclude hits such as "install", "pitfall".
Solution
Install "Chrome Regex Search" extension

Now search using Ctrl+Shift+f -> \bword\b

Tested on: Windows 10 Enterprise with extension code asof 2019-12-19.

Extensions

Install ublock origin

Ref:- https://github.com/gorhill/uBlock/tree/master/dist#build-instructions-for-developers

    cd $software/build
    mkdir ublock_origin_parent; cd ublock_origin_parent
    
    git clone https://github.com/gorhill/uBlock.git
    git clone https://github.com/uBlockOrigin/uAssets.git
    cd uBlock
    git checkout master
    
    source activate py38
    ./tools/make-chromium.sh
    

The package is created in dist/build/uBlock0.chromium

    chrome -> chrome://extensions/
    Enable Developer mode
    -> Load unpacked
    select /uBlock/dist/build/uBlock0.chromium/
    

Install bypass paywalls

Ref:- https://github.com/iamadamdev/bypass-paywalls-chrome

    cd $software/zipped
    mkdir bypass_paywalls
    cd bypass_paywalls
    curl -L -O https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip
    

Create a backup of previously unzipped version.

    cd ../unZipped
    make_bkup.py bypass-paywalls-chrome-master
    rm -rf bypass-paywalls-chrome-master
    

Unzip the latest version

    unzip ../zipped/bypass_paywalls/master.zip
    

This will unzip everything into $software/unZipped/bypass-paywalls-chrome-master

    chrome -> chrome://extensions/
    Enable Developer mode
    -> Load unpacked
    select $software/unZipped/bypass-paywalls-chrome-master
    

related:

Input Cursor Focus

Needed it for millionshort.com which does not focus the cursor in the search bar.

https://chrome.google.com/webstore/detail/input-cursor-focus/hnhplmcglkomfmoapojflionoibodhla/related?hl=en

New Tab Redirect

Using it to set set the new tab url to millionshort.com

https://chrome.google.com/webstore/detail/new-tab-redirect/icpgjfneehieebagbmdbhnlpiopdcmna