Forked from fancyremarker/enable_google_keyboard_shortcuts.sh
Created
October 3, 2011 23:07
-
-
Save hulet/1260502 to your computer and use it in GitHub Desktop.
Revisions
-
Frank Macreery revised this gist
Sep 29, 2011 . No changes.There are no files selected for viewing
-
Frank Macreery created this gist
Sep 29, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/sh # Force Google Keyboard Shortcuts experimental search in Chrome COOKIEJAR=~/Library/Application\ Support/Google/Chrome/Default/Cookies OLDCOOKIEVAL=$(sqlite3 "$COOKIEJAR" "select value from cookies where host_key = '.google.com' and name = 'PREF';") NEWCOOKIEVAL=$(echo $OLDCOOKIEVAL | sed 's/GM=.*\:S=/GM=1\:ES=WBS\:S=/') sqlite3 "$COOKIEJAR" "update cookies set value = '$NEWCOOKIEVAL' where host_key = '.google.com' and name = 'PREF';"