mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-08 00:45:13 +08:00
添加地图搜索模块;添加360百科;优化自动搜索模块控制台打印
This commit is contained in:
@@ -20,8 +20,9 @@ $.extend({
|
||||
window.onload = () => {
|
||||
let transText = $.getUrlVar('__bitdance_extension__');
|
||||
if (!transText || transText.trim() == "") return
|
||||
transText = decodeURIComponent(transText)
|
||||
console.log("[BitDance extension] 学生助手插件 - 百度百科自动搜索模块 - 模块文本为:", transText);
|
||||
|
||||
document.getElementById("query").value = decodeURIComponent(transText)
|
||||
document.getElementById("query").value = transText
|
||||
document.getElementById("search").click()
|
||||
}
|
||||
|
@@ -20,9 +20,10 @@ $.extend({
|
||||
window.onload = () => {
|
||||
let transText = $.getUrlVar('__bitdance_extension__');
|
||||
if (!transText || transText.trim() == "") return
|
||||
transText = decodeURIComponent(transText)
|
||||
console.log("[BitDance extension] 学生助手插件 - 有道翻译自动填入模块 - 翻译文本为:", transText);
|
||||
|
||||
document.getElementsByTagName("textarea")[0].value = decodeURIComponent(transText)
|
||||
document.getElementsByTagName("textarea")[0].value = transText
|
||||
document.getElementById("transMachine").click()
|
||||
|
||||
// 参数获取完成后,清除掉页面参数
|
||||
|
@@ -20,8 +20,9 @@ $.extend({
|
||||
window.onload = () => {
|
||||
let transText = $.getUrlVar('__bitdance_extension__');
|
||||
if (!transText || transText.trim() == "") return
|
||||
transText = decodeURIComponent(transText)
|
||||
console.log("[BitDance extension] 学生助手插件 - 维普期刊自动搜索模块 - 模块文本为:", transText);
|
||||
|
||||
document.getElementById("searchKeywords").value = decodeURIComponent(transText)
|
||||
document.getElementById("searchKeywords").value = transText
|
||||
document.getElementById("btnSearch").click()
|
||||
}
|
||||
|
@@ -20,8 +20,9 @@ $.extend({
|
||||
window.onload = () => {
|
||||
let transText = $.getUrlVar('__bitdance_extension__');
|
||||
if (!transText || transText.trim() == "") return
|
||||
transText = decodeURIComponent(transText)
|
||||
console.log("[BitDance extension] 学生助手插件 - 中国知网自动搜索模块 - 模块文本为:", transText);
|
||||
|
||||
document.getElementById("txt_SearchText").value = decodeURIComponent(transText)
|
||||
document.getElementById("txt_SearchText").value = transText
|
||||
document.querySelector(".search-btn").click()
|
||||
}
|
||||
|
Reference in New Issue
Block a user