Janetterの「Yahoo! 検索」をGoogleに変更する
JanetterのWeb検索エンジン変更第2弾。
右クリック時の「Yahoo!で検索」をGoogleでの検索に変更する方法です。
表示用のリソースファイルja.jsonと検索処理用のapi.jsを変更します。
1.C:\Program Files\Janetter2\bin\locale\ja.jsonを変更する
修正前
"webSearch":"Yahoo! 検索",
修正後
"webSearch":"Google 検索",
2.C:\Program Files\Janetter2\Theme\Common\js\janet\api.jsを変更する
修正前
//------------------------------------------------ // Web検索のURL取得 //------------------------------------------------ jn.webSearchUrl = function(word){ var url; word = encodeURIComponent(word); if(jn.conf.lang=='ja') url = jn.YAHOOCOJP_SEARCH_URI.format(word); else url = jn.GOOGLE_SEARCH_URI.format(word); return url; };
修正後
//------------------------------------------------ // Web検索のURL取得 //------------------------------------------------ jn.webSearchUrl = function(word){ var url; word = encodeURIComponent(word); //if(jn.conf.lang=='ja') // url = jn.YAHOOCOJP_SEARCH_URI.format(word); //else url = jn.GOOGLE_SEARCH_URI.format(word); return url; };