File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,15 @@ async function resolve(doi) {
13
13
}
14
14
15
15
browser . menus . create ( {
16
- id : 'menuItem' ,
17
- title : 'Open as DOI' ,
18
- contexts : [ 'link' , 'selection' ]
16
+ id : 'menuLink' ,
17
+ title : 'Open Link as DOI' ,
18
+ contexts : [ 'link' ]
19
+ } ) ;
20
+
21
+ browser . menus . create ( {
22
+ id : 'menuSelection' ,
23
+ title : 'Open Selection as DOI' ,
24
+ contexts : [ 'selection' ]
19
25
} ) ;
20
26
21
27
browser . menus . onClicked . addListener ( function ( info ) {
Original file line number Diff line number Diff line change 7
7
"manifest_version" : 2 ,
8
8
"name" : " Custom DOI resolver" ,
9
9
"description" : " A browser extention that redirect DOIs to a user defined resolver." ,
10
- "version" : " 0.2 " ,
10
+ "version" : " 0.3 " ,
11
11
"homepage_url" : " https://github.com/TheMrBen/custom-doi-resolver" ,
12
12
"permissions" : [
13
13
" menus" ,
14
14
" storage" ,
15
15
" webRequest" ,
16
16
" webRequestBlocking" ,
17
- " *://*.doi.org/* "
17
+ " <all_urls> "
18
18
],
19
19
"background" : {
20
20
"scripts" : [
You can’t perform that action at this time.
0 commit comments