Skip to content

ChromeInstall

cielavenir edited this page May 11, 2015 · 1 revision

ChromeInstall

browserUA edition

  • This depends on --user-agent= command line option.
  • It doesn't use background webRequest.
    • Background manifest.json syntax has changed from v2, but browserUA doesn't use it.
    • Since manifest.json is compatible with v1, it works even on very old Chromium (maybe from 1.0).
  • From Chromium 17, you can use Developer Tools->Below-Right Gear icon->Override User Agent.
    • memo: defautlt values are in /opt/google/chrome/resources.pak, but how to edit it?

Chromium Version

  • Your Chromium version must be 18 or later.
    • filesystem edition requires Chromium 20 or later.
  • 1.4.x or below worked on Chromium 17, but no longer, for I use manifest.json version 2.
### From 21.0.1171.0 Use `--enable-easy-off-store-extension-install` option. * OSX: open -a "Google Chrome" --args --enable-easy-off-store-extension-install * Linux: google-chrome --enable-easy-off-store-extension-install & * Windows -> argh I don't like batch files or shortcuts... maybe you know how to use it. Right click then select property to edit args. * Well, I'm planning to setup Chrome Web Store **after synchronous config load scheme is available**.

Comparison

edition first version officially supported until config
ctouch_standard 1.2.0.20430 1.8.5.20917 Stored to session storage.
Reload issue due to asynchronous load.
ctouch_fixed 1.4.0.20515 1.8.5.20917 Hard-coded; not modifiable.
ctouch_external 1.5.0.20607 1.8.5.20917 extended
until ctouch_true is released
Stored to external web server.
Not standalone.
Now more stable.
ctouch_browserua 1.5.9.20706 N/A (shared with Safari version) Configured via --user-agent=... or Developer Tool.
No GUI.
ctouch_filesystem 1.8.3.20916 until ctouch_true is released Stored to HTML5 filesystem.
Currently the most stable.
ctouch_true (not released) TBA N/A (In the future) Synchronously loaded from Background localStorage.
Per-tab setting will be added.
  • reload issue = browser continue reloads until the asynchronous config load is done.
  • This issue will be fixed after synchronous config load scheme is available.
  • ctouch_browserua is identical to Safari version. Actually *.js are shared in source tree.

How to install ctouch_external

* From Aug 28, *ctouch_webrick.rb includes ctouch_external.cgi daemon*. * In this way, as long as you use webrick, you don't need to setup CGI anymore. * *If chrome.socket starts to support TCP, I'll port ctouch_webrick.rb to JavaScript. Then cTouch will be pseudo-standalone.* * That would be when standard and external edition will be removed :p * Windows users should use .exe packed with Ocra. * https://code.google.com/p/ctouch/downloads/detail?name=ctouch_webrick.exe

Information below is now obsolete.

### prepare ctouch_external.cgi * OSX/Linux: compile cgi/ctouch_external.c to $HOME/bin/ctouch/ctouch_external.cgi * Usually, `gcc -O2 -o $HOME/bin/ctouch/ctouch_external.cgi cgi/ctouch_external.c` * Windows: rename cgi/ctouch_external.exe to ctouch_external.cgi * Of course, you can compile on your own, but anyway I recommend mingw.

Prepare HTTPD

  • Windows: prepare AN HTTPD. launch daemon with port=12380, docroot=the same as ctouch_external.cgi
    • CGI ext=".cgi", path="--self--", "execute also in general path (outside cgi-bin) (一般パスでも実行する)", "launch as EXE (EXE形式の実行)"
    • From 2012 Jul 8, ctouch_external.exe is compiled using -mwindows, so much stabler. You don't have to struggle with black screen anymore.
    • You can still use ctouch_webrick.rb. If so, modify :DocumentRoot => "C:/path/to/ctouch_external_folder".
      • Please note you don't need CGI if you use ctouch_webrick.rb.