We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8412d5c commit 7775ac1Copy full SHA for 7775ac1
js/background.js
@@ -3,6 +3,6 @@ chrome.contextMenus.create({
3
title: '百度一下',
4
contexts: ['selection'],
5
onclick: (info) => {
6
- window.open('https://www.baidu.com/s?wd=' + info.selectionText)
+ window.open('https://www.baidu.com/s?wd=' + info.selectionText.replaceAll('&', '%26'))
7
},
8
})
0 commit comments