User Tools

Site Tools


chrome_notes

favorite configuration on desktop

background of the inactive chrome tabs

If the background of the inactive chrome tabs is dark, their titles are not readily visible. To work around this, change the “theme color” to “Warm grey”.

chrome://settings/manageProfile -> Pick a theme color -> choose "Warm grey" option.

Before:

After:

tags | can't see chrome tabs in dark mode

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 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”.

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 engineKeywordURL 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

Blocking ads

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

dummy

go to the nth tab

M-[1–9]

Ref:- https://gwern.net/search → “Web Browser Hotkeys” section

fast select text in chrome

  • Select the first word or letter or a part of the word where you want to start copying.
  • Scroll down till the place you have to copy.
  • Hold down the Shift key, and click on the ending of the text.

Ref:- https://superuser.com/a/1309293/679081

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
# 2023-10-08: uAssets is not needed to build uBlock
# git clone https://github.com/uBlockOrigin/uAssets.git
cd uBlock
git checkout master

conda activate py311
make chromium

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

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

Useful links:

Install bypass paywalls clean

Ref:- https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean

cd $software/zipped
mkdir -p bypass_paywalls_clean
cd bypass_paywalls_clean

Download the zip file

curl -L -O https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip

Unzip the latest version

cd ../../unZipped
unzip ../zipped/bypass_paywalls_clean/bypass-paywalls-chrome-clean-master.zip

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

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

Install bypass paywalls

Note: on 2023-10-19, I decided to use https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean instead of https://github.com/iamadamdev/bypass-paywalls-chrome for reasons listed in https://www.kamaraju.xyz/dk/diary/2023-10-19 . But I am keeping these instructions for reference.

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

cd $software/zipped
mkdir -p bypass_paywalls
cd bypass_paywalls

Create a backup of the existing zip file

conda activate py311
make_bkup.py master.zip

Download the zip file

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

extensions I use

bookmarks file

C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Bookmarks

import bookmarks

three dots button → Bookmarks and lists → Import bookmarks and settings… → In the drop down choose “Bookmarks HTML file”

trouble shooting

Bad Request - Header Field Too Long

Issue:

Bad Request - Header Field Too Long
HTTP Error 400. A request header field is too long.

I cleared the cache for the last 7 days. It started working after that.

chrome_notes.txt · Last modified: 2023/11/15 20:13 by raju