Janetter検索ポップアップの検索エンジンを変更する
Janetterでは文字列選択時のポップアップによる検索についてはプラグインにて実現しているようです。
検索エンジンをYahooから変更したい場合、そのプラグインを書き換えてあげれば検索エンジンを変更できます。
もともと日本語圏以外はGoogleを利用する設定のようですので、日本語圏用の処理をコメントアウトするだけです。
なお、変更するかどうかは各個人で判断をお願いします。
C:\Program Files\Janetter2\Theme\Common\js\plugins\searchpopup.js
修正前
function getLink(selection) { // // Janetterの開発は皆さまのYahoo!検索によって支えられております。ありがとうございます! // if((jn.conf && jn.conf.lang ? jn.conf.lang : 'ja')=='ja'){ return 'http://search.yahoo.co.jp/search?ei=UTF-8&fr=sb-jane&p=' + encodeURIComponent(selection); }else{ return 'http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=' + encodeURIComponent(selection); } }
修正後
function getLink(selection) { // // Janetterの開発は皆さまのYahoo!検索によって支えられております。ありがとうございます! // /* if((jn.conf && jn.conf.lang ? jn.conf.lang : 'ja')=='ja'){ return 'http://search.yahoo.co.jp/search?ei=UTF-8&fr=sb-jane&p=' + encodeURIComponent(selection); }else{ */ return 'http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=' + encodeURIComponent(selection); //} }