User Tools

Site Tools


chrome_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
chrome_notes [2023/06/30 16:43] – [restore previous session] rajuchrome_notes [2023/11/15 20:13] (current) raju
Line 3: Line 3:
 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". 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.+  chrome://settings/manageProfile -> Pick a theme color -> choose "Warm grey" option.
  
 Before: Before:
 +
 {{:chrome_tabs_dark_background.png}} {{:chrome_tabs_dark_background.png}}
  
 After: After:
 +
 {{:chrome_tabs_warm_grey_theme.png}} {{:chrome_tabs_warm_grey_theme.png}}
  
  
-tags | See chrome tabs in dark mode+tags | can't see chrome tabs in dark mode
  
 ==== restore previous session ==== ==== restore previous session ====
Line 52: Line 54:
  
 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 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 <nowiki>http://www.enricozini.org/blog/2016/i-chipped-in/</nowiki>
 +
 ===== dummy ===== ===== dummy =====
 +
 +==== go to the nth tab ====
 +''M-[1–9]''
 +
 +Ref:- https://gwern.net/search -> "Web Browser Hotkeys" section
  
 ==== fast select text in chrome ==== ==== fast select text in chrome ====
Line 73: Line 85:
  
 git clone https://github.com/gorhill/uBlock.git git clone https://github.com/gorhill/uBlock.git
-2022-09-20Do we have to check out uAssets? +2023-10-08: uAssets is not needed to build uBlock 
-git clone https://github.com/uBlockOrigin/uAssets.git+git clone https://github.com/uBlockOrigin/uAssets.git
 cd uBlock cd uBlock
 git checkout master git checkout master
  
-conda activate py310 +conda activate py311 
-./tools/make-chromium.sh+make chromium
 </code> </code>
 The package is created in dist/build/uBlock0.chromium The package is created in dist/build/uBlock0.chromium
Line 92: Line 104:
 Useful links: Useful links:
   * https://github.com/uBlockOrigin/uBlock-issues/issues - This is the issue tracker as per https://github.com/gorhill/uBlock/issues/3726   * 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
 +
 +<code>
 +cd $software/zipped
 +mkdir -p bypass_paywalls_clean
 +cd bypass_paywalls_clean
 +</code>
 +
 +/*
 +(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
 +<code>
 +conda activate py311
 +make_bkup.py master.zip
 +</code>
 +*/
 +
 +Download the zip file
 +<code>
 +curl -L -O https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip
 +</code>
 +
 +/*
 +(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.
 +<code>
 +cd ../../unZipped
 +make_bkup.py bypass-paywalls-chrome-master
 +rm -rf bypass-paywalls-chrome-master
 +</code>
 +*/
 +
 +Unzip the latest version
 +<code>
 +cd ../../unZipped
 +unzip ../zipped/bypass_paywalls_clean/bypass-paywalls-chrome-clean-master.zip
 +</code>
 +This will unzip everything into $software/unZipped/bypass-paywalls-chrome-clean-master
 +
 +<code>
 +chrome -> chrome://extensions/
 +Enable Developer mode
 +-> Load unpacked
 +select $software/unZipped/bypass-paywalls-chrome-clean-master
 +</code>
 +
 +/*
 +(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 ==== ==== 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 Ref:- https://github.com/iamadamdev/bypass-paywalls-chrome
  
Line 103: Line 174:
 Create a backup of the existing zip file Create a backup of the existing zip file
 <code> <code>
 +conda activate py311
 make_bkup.py master.zip make_bkup.py master.zip
 </code> </code>
Line 134: Line 206:
   * https://github.com/iamadamdev/bypass-paywalls-chrome/archive/v1.7.5.zip - link to download a specific version.   * 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.   * 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 ==== ==== extensions I use ====
Line 149: Line 231:
 ==== import bookmarks ==== ==== import bookmarks ====
 three dots button -> Bookmarks and lists -> Import bookmarks and settings... -> In the drop down choose "Bookmarks HTML file" 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:
 +<code>
 +Bad Request - Header Field Too Long
 +HTTP Error 400. A request header field is too long.
 +</code>
 +
 +
 +I cleared the cache for the last 7 days. It started working after that.
 +
chrome_notes.1688143388.txt.gz · Last modified: 2023/06/30 16:43 by raju