===== 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:
{{:chrome_tabs_dark_background.png}}
After:
{{:chrome_tabs_warm_grey_theme.png}}
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 [[https://chrome.google.com/webstore/detail/disable-html5-autoplay/efdhoaajjjgckpbkoglidkeendpkolai?hl=en|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 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
==== Blocking ads ====
* [[https://github.com/gorhill/uBlock/ | uBlock Origin]]
* 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
==== links I came across ====
* https://support.google.com/chrome/answer/157179 - chrome keyboard shortcuts
==== dummy ====
* about://about redirects to chrome://about/ . It shows all about urls.
===== 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:
* https://github.com/uBlockOrigin/uBlock-issues/issues - This is the issue tracker as per https://github.com/gorhill/uBlock/issues/3726
==== 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
/*
(Raju, 2023-10-19): copied this code but commenting it out as it needs to be updated and tested.
Create a backup of the existing zip file
conda activate py311
make_bkup.py master.zip
*/
Download the zip file
curl -L -O https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip
/*
(Raju, 2023-10-19): copied this code but commenting it out as it needs to be updated and tested.
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
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
/*
(Raju, 2023-10-19): copied this code but commenting it out as it needs to be updated and tested.
related:
* https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/make_bkup.py - script to backup a directory or a file.
*/
==== 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/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:
* https://github.com/iamadamdev/bypass-paywalls-chrome/archive/v1.7.5.zip - link to download a specific version.
* https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/make_bkup.py - script to backup a directory or a file.
==== 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
==== extensions I use ====
* autoscroll
* Install this extension to scroll using the middle mouse button in chrome on Debian.
* It supports two ways of scrolling:
- Press (or hold) the middle mouse button and then move the mouse
- Hold Ctrl and press the left mouse button
* https://chrome.google.com/webstore/detail/autoscroll/occjjkgifpmdgodlplnacmkejpdionan?hl=en
===== bookmarks related =====
==== bookmarks file ====
C:\Users\\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.
===== How to =====
==== set all websites to dark mode ====
chrome://flags/ -> enable “Auto Dark Mode for Web Contents”
found it in | https://frugalprofessor.com/financial-update-oct-2024/
tags | experiments