Chrome: Difference between revisions
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
map <C-k> previousTab |
map <C-k> previousTab |
||
map <C-o> lastUsedTab |
map <C-o> lastUsedTab |
||
:Start {{file|cvim_server.py}} on startup: |
|||
./cvim_server.py & |
|||
* [https://vimium.github.io/ Vimium] — Vim-like extension for Chrome / Chromium - not tried yet. |
|||
* [https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko?hl=en Session Buddy] — A tab management extension for Chrome, recommended by several HN readers. Not tried yet. |
|||
=== Session management === |
|||
* [https://chrome.google.com/webstore/detail/tab-session-manager/iaiomicjabeggjcfkbimgmglanimpnae?hl=en-US Tab Session Manager] |
|||
: In Use. Support LAZY load of session. Support AUTOSAVE, but NOT to user saved sesssion (so when closing a session we want to keep, existing session must be replaced). DOES NOT save HISTORY. |
|||
* [https://chrome.google.com/webstore/detail/the-great-suspender-origi/ahmkjjgdligadogjedmnogbpbcpofeeo?hl=en-US The Great Suspender] |
|||
: To try. Seem to provide simple session management feature in addition to suspend tabs. |
|||
* [https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko?hl=en-US Session Buddy] |
|||
: Lot of user, but apparently no lazy load. |
|||
* [https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc?hl=en-US session manager] |
|||
: NO LAZY loading. |
|||
== How-To == |
== How-To == |
||
Line 76: | Line 92: | ||
</source> |
</source> |
||
|} |
|} |
||
=== Enable Chromecast === |
|||
To enable chromecast support in Chromium [https://alien.slackbook.org/blog/casting-to-your-chromecast-in-chromium/]: |
|||
* Go to <code>chrome://flags/#load-media-router-component-extension</code> |
|||
* Set to '''Enabled'''. |
|||
* Relaunch. |
|||
== Troubleshooting == |
|||
=== chromium: Blank window when used over ssh tunnel === |
|||
When opening '''chromium''' through a ssh tunnel, the application opens but all pages are blank. |
|||
The problem is apparently linked to a broken MIT-SHM detection code [https://www.ecenica.com/support/answer/fix-slow-outlook-imap-subscribed-folders-synchronization/]. Download the fix from this link or [[Media:Fix_for_chromium_with_broken_MIT-SHM_detection.zip|this archive]], then compile and load it: |
|||
<source lang="bash"> |
|||
cc -shared -o XlibNoSHM.so XlibNoSHM.c |
|||
LD_PRELOAD='libdl.so ./XlibNoSHM.so' chromium |
|||
</source> |
Latest revision as of 12:01, 28 February 2023
Extensions
- My cvimrc:
set noautofocus " Mappings - same as Penta.dactyl on Firefox map <C-u> scrollPageUp map <C-d> scrollPageDown imap <C-i> editWithVim " Mappings - custom map <C-j> nextTab map <C-k> previousTab map <C-o> lastUsedTab
- Start cvim_server.py on startup:
./cvim_server.py &
- Vimium — Vim-like extension for Chrome / Chromium - not tried yet.
- Session Buddy — A tab management extension for Chrome, recommended by several HN readers. Not tried yet.
Session management
- In Use. Support LAZY load of session. Support AUTOSAVE, but NOT to user saved sesssion (so when closing a session we want to keep, existing session must be replaced). DOES NOT save HISTORY.
- To try. Seem to provide simple session management feature in addition to suspend tabs.
- Lot of user, but apparently no lazy load.
- NO LAZY loading.
How-To
Manually install an extension
- Download the extension source (for instance from GitHub)
- In Chrome, Go to More tools → extensions, and click the checkbox Developer mode.
- Click on Load unpacked extension..., and point it to extension source directory (containing manifest.json.
Fix ZScaler authentication - import ZScaler SSO cookie
ZScaler is a corporate filtering proxy. Users must login with Single-Sign-On to get access to internet resources. If authentication fails in Chrome but, say, works in Internet Explorer, one can import the authentication cookie in Chrome/Chromium and hence skip the failing authentication step (from calebcoffie.com).
- First, go to C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files, and locate the zscaler cookie, which is named cookie:%username%@gateway.zscaler.net.
- Open the cookie in WordPad (or copy/paste into WordPad). You should have something like this, where the
XXXXXXXXXXXXXXXXXXX
are the actual cookie (secret) value:
_sm_au_c XXXXXXXXXXXXXXXXXXX gateway.zscaler.net/ ... ... ... * _sm_up_c XXXXXXXXXXXXX gateway.zscaler.net/ ... ... ...
- In Chrome, create a new cookie using extension EditThisCookie, and import both cookies above using the templates below, where the cookie value must be replaced with the one found above:
{
"domain": ".gateway.zscaler.net",
"hostOnly": false,
"httpOnly": false,
"name": "_sm_au_c",
"path": "/",
"secure": true,
"session": true,
"storeId": "0",
"value": "XXXXXXXXXXXXXXXXX",
"id": 1
}
|
{
"domain": ".gateway.zscaler.net",
"hostOnly": false,
"httpOnly": false,
"name": "_sm_up_c",
"path": "/",
"secure": true,
"session": true,
"storeId": "0",
"value": "XXXXXXXXXXXX",
"id": 1
}
|
Enable Chromecast
To enable chromecast support in Chromium [1]:
- Go to
chrome://flags/#load-media-router-component-extension
- Set to Enabled.
- Relaunch.
Troubleshooting
chromium: Blank window when used over ssh tunnel
When opening chromium through a ssh tunnel, the application opens but all pages are blank.
The problem is apparently linked to a broken MIT-SHM detection code [2]. Download the fix from this link or this archive, then compile and load it:
cc -shared -o XlibNoSHM.so XlibNoSHM.c
LD_PRELOAD='libdl.so ./XlibNoSHM.so' chromium