diff --git a/tools/chromium_extension/js/app/box.js b/tools/chromium_extension/js/app/box.js index d407ebb..86ef3f3 100644 --- a/tools/chromium_extension/js/app/box.js +++ b/tools/chromium_extension/js/app/box.js @@ -6,6 +6,7 @@ let goToSearchPronounce = (word) => { let search_engine_name = "gotToGoogleSearch"; // search_engine_name='gotToYouDaoSearch' // search_engine_name = "goToBingDictSearch"; + //search_engine_name = "goToBingSearch"; search_engine_name = "gotToYouDaoSearch"; let tab = "current_tab"; diff --git a/tools/chromium_extension/js/app/search-engine.js b/tools/chromium_extension/js/app/search-engine.js index 3034d6f..53ba1f5 100644 --- a/tools/chromium_extension/js/app/search-engine.js +++ b/tools/chromium_extension/js/app/search-engine.js @@ -9,7 +9,10 @@ let gotToYouDaoSearch = (word) => { }; let goToBingDictSearch = (word) => { - return `https://cn.bing.com/dict/search?q=${word}`; + return `https://cn.bing.com/dict/${word}`; +}; +let goToBingSearch = (word) => { + return `https://cn.bing.com/search?q=how%20to%20pronounce%20${word}`; }; let goToBaiduDictSearch = (word) => { return ` https://dict.baidu.com/s?wd=${word}`; @@ -31,5 +34,6 @@ export { gotToYouDaoSearch, gotToGoogleSearch, goToBingDictSearch, + goToBingSearch, goToBaiduDictSearch, };