Skip to content

Commit af1d51d

Browse files
committed
In-VSCode: make link open in new tab
Closes Mottie#147
1 parent ee1d320 commit af1d51d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Userscripts to add functionality to GitHub.
3939
| [GitHub hide own feed meta][hof-wiki] | | [install][hof-raw] | [GF][hof-gf] [OU][hof-ou] | 2017.12.21 | 2021.01.31 |
4040
| [GitHub html preview][ghp-wiki] | | [install][ghp-raw] | [GF][ghp-gf] [OU][ghp-ou] | 2019.03.29 | 2021.01.31 |
4141
| [GitHub image preview][ipv-wiki] | | [install][ipv-raw] | [GF][ipv-gf] [OU][ipv-ou] | 2016.05.17 | 2021.01.31 |
42-
| [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2021.02.11 |
42+
| [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2021.06.10 |
4343
| [GitHub indent comments][ioc-wiki] | | [install][ioc-raw] | [GF][ioc-gf] [OU][ioc-ou] | 2017.03.15 | 2021.01.31 |
4444
| [GitHub issue add details][iad-wiki] | | [install][iad-raw] | [GF][iad-gf] [OU][iad-ou] | 2018.01.05 | 2021.01.31 |
4545
| [GitHub issue comments][ic1-wiki] | | [install][ic1-raw] | [GF][ic1-gf] [OU][ic1-ou] | 2016.04.04 | 2021.01.31 |

github-in-vscode.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name GitHub in VSCode
3-
// @version 0.1.0
3+
// @version 0.1.1
44
// @description A userscript that adds a button to open a repo in VSCode using github1s
55
// @license MIT
66
// @author Rob Garrison
@@ -78,7 +78,9 @@
7878
className: `ghiv-link btn ${margin} tooltipped tooltipped-n`,
7979
attrs: {
8080
href: `https://github1s.com${window.location.pathname}`,
81-
"aria-label": "Open this repo in VS Code using github1s"
81+
"aria-label": "Open this repo in VS Code using github1s",
82+
target: "_blank",
83+
rel: "noopener noreferrer"
8284
},
8385
html: vsCodeIcon
8486
});

0 commit comments

Comments
 (0)