新增可更换 搜索引擎 功能

pull/387/head
jingjingxyk 2 years ago
parent 502f62c128
commit 3f74d11ebf

@ -115,10 +115,10 @@ let showSetSearchEngine = (box, window_close_icon) => {
{
let search_engin_provider = {
"goToYouDaoSearch": "有道",
"goToGoogleSearch": "谷歌",
"goToBingDictSearch": "必应词典",
"goToBingSearch": "必应",
goToYouDaoSearch: "有道",
goToGoogleSearch: "谷歌",
goToBingDictSearch: "必应词典",
goToBingSearch: "必应",
};
let select = document.createElement("select");
select.setAttribute("name", "search_engin_provider");
@ -139,8 +139,8 @@ let showSetSearchEngine = (box, window_close_icon) => {
}
{
let search_engin_provider_tab = {
"current_tab": "当前标签展示结果",
"new_tab": "新标签展示结果",
current_tab: "当前标签展示结果",
new_tab: "新标签展示结果",
};
let select = document.createElement("select");
select.setAttribute("class", "search_engin_provider_tab");
@ -233,7 +233,7 @@ let setupConfig = (search_engine_name, tab) => {
let cleanOpener = () => {
sessionStorage.removeItem(opener_key);
console.log("重置扩展搜索结果打开方式配置---ok");
console.log("重置搜索结果打开方式配置---ok");
};
export {

@ -15,10 +15,9 @@ let goToBingSearch = (word) => {
return `https://cn.bing.com/search?q=how%20to%20pronounce%20${word}`;
};
export {
goToYouDaoSearch,
goToGoogleSearch,
goToBingDictSearch,
goToBingSearch
goToBingSearch,
};

Loading…
Cancel
Save