File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "semi": false,
3+ "singleQuote": true,
4+ "formatOnSave": true,
5+ "printWidth": 1000
6+ }
Original file line number Diff line number Diff line change 1+ chrome . contextMenus . create ( {
2+ type : 'normal' ,
3+ title : '百度一下' ,
4+ contexts : [ 'selection' ] ,
5+ onclick : ( info ) => {
6+ window . open ( 'https://www.baidu.com/s?wd=' + info . selectionText )
7+ } ,
8+ } )
Original file line number Diff line number Diff line change 1+ {
2+ "manifest_version" : 2 ,
3+ "name" : " 百度一下" ,
4+ "description" : " 百度一下,百度快捷搜索" ,
5+ "version" : " 1.0.0" ,
6+ "icons" : {
7+ "16" : " images/icon.png" ,
8+ "48" : " images/icon.png" ,
9+ "128" : " images/icon.png"
10+ },
11+ "background" : {
12+ "scripts" : [
13+ " js/background.js"
14+ ]
15+ },
16+ "permissions" : [
17+ " contextMenus"
18+ ]
19+ }
You can’t perform that action at this time.
0 commit comments