Google Chrome ã®ã¢ããªã¢ãŒãã䜿ã£ãŠãªãã¡ãã£ãŠèŠããå°çšãã©ãŠã¶ãäœã£ãŠã¿ããã
ã¢ããªã¢ãŒãã£ãŠãªããïŒ
ã¿ããããŒã«ããŒãªã©è¡šç€ºãããªããããããã²ãšã€ã®ã¢ããªã±ãŒã·ã§ã³ã®ããã«è¡šç€ºãããã¢ãŒãã®ããšãïŒãšåæã«è§£éã詳ãã㯠Chrome ãŠã§ãã¹ãã¢ã§ Pocket ã Google Keep ãå ¥ããŠã¿ããïŒïŒ
OS X ç衚瀺äŸ
Linux ç衚瀺äŸ
URL ãã¢ããªã¢ãŒãã§éãã³ãã³ã
å®è¡ãã¡ã€ã«ã« --app=URL
ãæå®ãããš URL ãã¢ããªã¢ãŒãã§éããŠãããŸãã
OS X ã®å Žå
open
ã³ãã³ãã®å Žå
open -n -a 'Google Chrome' --args '--app=http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/'
Google Chrome
ã³ãã³ãã®å Žå
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/"
Linux ã®å Žå
/opt/google/chrome/google-chrome --app="http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/"
Windows ã®å Žå
C:¥Program Files¥ ãããã«å®è¡ãã¡ã€ã«ãããããããªãããªâŠâŠâŠïŒãšãããã¿ããªå°ãã©äœ¿ã£ãŠããïŒ
ã©ã³ãã£ãäœã
ãã¡ãã¡ã³ãã³ãã©ã€ã³ã§å®è¡ããã®ã¯é¢åãªã®ã§ã©ã³ãã£ãäœããŸããååãã¢ã€ã³ã³ã¯ã奜ã¿ã§ãChrome ã¢ããªã®è©³çŽ°ããŸã 調ã¹ãŠããªããããã£ãšè¯ãæ¹æ³ããããããããŸããã
ä»åãã¢ã€ã³ã³ã¯ @Kiguchi1902 ããã®èŠããã¢ã€ã³ã³ ããåããŸããã
OS X ã®å Žå
osacompile
ã AppleScript ãšãã£ã¿.app ã§ã¢ããªã±ãŒã·ã§ã³ãäœããŸããAutomator ã§äœã£ãã¢ããªã±ãŒã·ã§ã³ã¯ç·šéãããšã¢ã€ã³ã³ãå
ã«æ»ããŸãã®ã§ã泚æãã
osacompile -o èŠãã.app <<\! do shell script "open -na 'Google Chrome' --args '--app=http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/'" !
ä»åãICNS ãã¡ã€ã«ã¯ makeicns
ã§äœæããŸããMacPorts ãšã Homebrew ãšãã§ã€ã³ã¹ããŒã«ã§ããŸããåºæ¥äžãã£ãã¢ã€ã³ã³ã¯ã¢ããªã±ãŒã·ã§ã³ãã³ãã«å
ã® applet.icns
ã«äžæžãã³ããŒããŠãããããFinder ã§ã¢ããªã±ãŒã·ã§ã³ãã³ãã«ã®ã€ã³ã¹ãã¯ã¿ã衚瀺ããŠãã©ãã°ããŠãOKã
makeicns -in image.png -out applet.icns cp applet.icns èŠãã.app/Contents/Resources/applet.icns
Linux ã®å Žå
MenuLibre ã Alacarte ãªããã§äœããŸããïŒãã¹ã¯ãããç°å¢ã«ããïŒ
Windows ã®å Žå
ãããã·ã§ãŒãã«ããã®äœæã§äœããããããªãããªâŠâŠâŠ
è§äžžïŒåœ±ä»ãã¢ã€ã³ã³äœæã¬ã·ã
ImageMagick ã«ããã¢ã€ã³ã³ã®äœæã256x256 ãµã€ãºã®ã¢ã€ã³ã³ãäœæããŸããè§äžžååŸãéæ床ã¯ã奜ã¿ã§ã
ïŒ-composite
ããã®ãšãã®ãªã¹ãåŠçå¿ããã®ã§ã³ãã³ããåããŠæžããŠããŸãâŠæ±ïŒ
# è§äžžå convert image.png -resize 240x240+0+0\! -alpha on \ \( -size 240x240 xc:none -draw 'roundRectangle 0,0 239,239 24,24' \) \ -compose DstIn -composite temp.png # 圱ã®è¿œå # note: -shadow {opacity}x{blur}+{x}+{y} convert temp.png \ \( +clone -background black -shadow 60x4+0+4 \) \ +swap -background none -layers merge +repage icon.png
çŸåšéããŠãã URL ãã¢ããªã¢ãŒãã§è¡šç€ºããïŒOS X åãïŒ
çŸåšéããŠããã¿ããã¢ããªã¢ãŒãã§è¡šç€ºããŸãã
tell application "Google Chrome" do shell script "open -na 'Google Chrome' --args '--app=" & URL of active tab of window 1 & "'" end tell
ã¢ããªã¢ãŒãã¯å¹ ãšé«ããããçšåºŠæ±ºãŸã£ãŠããã®ã§ãŠã£ã³ããŠè£ 食ä»ãã§ãŠã§ãããŒãžã®ã¹ã¯ãªãŒã³ã·ã§ãããæ®ã£ãããããšãã«ãããããããŸãããäŸãã°ä»¥äžã¯ User Agent Switcher ãªã³ã»ãªãã®äŸã§ãã
Google Chrome ã³ãã³ãã©ã€ã³ãªãã·ã§ã³ïŒLinux çïŒ
google-chrome(1) USER COMMANDS google-chrome(1) NAME google-chrome - the web browser from Google SYNOPSIS google-chrome [OPTION] [PATH|URL] DESCRIPTION See the Google Chrome help center for help on using the browser. <http://www.google.com/support/chrome/> This manpage only describes invocation, environment, and arguments. OPTIONS Google Chrome has hundreds of undocumented command-line flags that are added and removed at the whim of the developers. Here, we document relatively stable flags. --user-data-dir=DIR Specifies the directory that user data (your "profile") is kept in. Defaults to ~/.config/google-chrome . Separate instances of Google Chrome must use separate user data directories; repeated invocations of google-chrome will reuse an existing process for a given user data directory. --app=URL Runs URL in "app mode": with no browser toolbars. --incognito Open in incognito mode. --proxy-server=host:port Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests. This overrides any environment variables or settings picked via the options dialog. An individual proxy server is specified using the format: [<proxy-scheme>://]<proxy-host>[:<proxy-port>] Where <proxy-scheme> is the protocol of the proxy server, and is one of: "http", "socks", "socks4", "socks5". If the <proxy-scheme> is omitted, it defaults to "http". Also note that "socks" is equivalent to "socks5". Examples: --proxy-server="foopy:99" Use the HTTP proxy "foopy:99" to load all URLs. --proxy-server="socks://foobar:1080" Use the SOCKS v5 proxy "foobar:1080" to load all URLs. --proxy-server="socks4://foobar:1080" Use the SOCKS v4 proxy "foobar:1080" to load all URLs. --proxy-server="socks5://foobar:66" Use the SOCKS v5 proxy "foobar:66" to load all URLs. It is also possible to specify a separate proxy server for difâ ferent URL types, by prefixing the proxy server specifier with a URL specifier: Example: --proxy-server="https=proxy1:80;http=socks4://baz:1080" Load https://* URLs using the HTTP proxy "proxy1:80". And load http://* URLs using the SOCKS v4 proxy "baz:1080". --no-proxy-server Disables the proxy server. Overrides any environment variables or settings picked via the options dialog. --proxy-auto-detect Autodetect proxy configuration. Overrides any environment variâ ables or settings picked via the options dialog. --proxy-pac-url=URL Specify proxy autoconfiguration URL. Overrides any environment variables or settings picked via the options dialog. --password-store=<basic|gnome|kwallet> Set the password store to use. The default is to automatically detect based on the desktop environment. basic selects the built in, unencrypted password store. gnome selects Gnome keyring. kwallet selects (KDE) KWallet. (Note that KWallet may not work reliably outside KDE.) --version Show version information. As a GTK+ app, Google Chrome also obeys GTK+ command-line flags, such as --display. See the GTK documentation for more: <http://library.gnome.org/devel/gtk/stable/gtk-running.html> <http://library.gnome.org/devel/gtk/stable/gtk-x11.html> ENVIRONMENT Google Chrome obeys the following environment variables: all_proxy Shorthand for specifying all of http_proxy, https_proxy, ftp_proxy http_proxy, https_proxy, ftp_proxy The proxy servers used for HTTP, HTTPS, and FTP. Note: because Gnome/KDE proxy settings may propagate into these variables in some terminals, this variable is ignored (in preference for actual system proxy settings) when running under Gnome or KDE. Use the command-line flags to set these when you want to force their values. auto_proxy Specify proxy autoconfiguration. Defined and empty autodetects; otherwise, it should be an autoconfig URL. But see above note about Gnome/KDE. SOCKS_SERVER SOCKS proxy server (defaults to SOCKS v4, also set SOCKS_VERâ SION=5 to use SOCKS v5). no_proxy Comma separated list of hosts or patterns to bypass proxying. FILES ~/.config/google-chrome Default directory for configuration data. ~/.cache/google-chrome Default directory for cache data. (Why? See <http://stanâ dards.freedesktop.org/basedir-spec/latest/> .) BUGS Bug tracker: http://code.google.com/p/chromium/issues/list Be sure to do your search within "All Issues" before reporting bugs, and be sure to pick the "Defect on Linux" template when filing a new one. AUTHOR The Chromium team - <http://www.chromium.org> google-chrome(1)
- 2014幎08æ17æ¥ïŒäžéšã³ãã³ããä¿®æ£