Skip to content

Commit

Permalink
In-VSCode: make link open in new tab
Browse files Browse the repository at this point in the history
Closes Mottie#147
  • Loading branch information
darkred committed Jun 10, 2021
1 parent ee1d320 commit af1d51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Userscripts to add functionality to GitHub.
| [GitHub hide own feed meta][hof-wiki] | | [install][hof-raw] | [GF][hof-gf] [OU][hof-ou] | 2017.12.21 | 2021.01.31 |
| [GitHub html preview][ghp-wiki] | | [install][ghp-raw] | [GF][ghp-gf] [OU][ghp-ou] | 2019.03.29 | 2021.01.31 |
| [GitHub image preview][ipv-wiki] | | [install][ipv-raw] | [GF][ipv-gf] [OU][ipv-ou] | 2016.05.17 | 2021.01.31 |
| [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2021.02.11 |
| [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2021.06.10 |
| [GitHub indent comments][ioc-wiki] | | [install][ioc-raw] | [GF][ioc-gf] [OU][ioc-ou] | 2017.03.15 | 2021.01.31 |
| [GitHub issue add details][iad-wiki] | | [install][iad-raw] | [GF][iad-gf] [OU][iad-ou] | 2018.01.05 | 2021.01.31 |
| [GitHub issue comments][ic1-wiki] | | [install][ic1-raw] | [GF][ic1-gf] [OU][ic1-ou] | 2016.04.04 | 2021.01.31 |
Expand Down
6 changes: 4 additions & 2 deletions github-in-vscode.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name GitHub in VSCode
// @version 0.1.0
// @version 0.1.1
// @description A userscript that adds a button to open a repo in VSCode using github1s
// @license MIT
// @author Rob Garrison
Expand Down Expand Up @@ -78,7 +78,9 @@
className: `ghiv-link btn ${margin} tooltipped tooltipped-n`,
attrs: {
href: `https://github1s.com${window.location.pathname}`,
"aria-label": "Open this repo in VS Code using github1s"
"aria-label": "Open this repo in VS Code using github1s",
target: "_blank",
rel: "noopener noreferrer"
},
html: vsCodeIcon
});
Expand Down

0 comments on commit af1d51d

Please sign in to comment.