File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Userscripts to add functionality to GitHub.
36
36
| [GitHub hide own feed meta][hof-wiki] | | [install][hof-raw] | [GF][hof-gf] [OU][hof-ou] | 2017.12.21 | 2021.07.21 |
37
37
| [GitHub html preview][ghp-wiki] | | [install][ghp-raw] | [GF][ghp-gf] [OU][ghp-ou] | 2019.03.29 | 2021.07.21 |
38
38
| [GitHub image preview][ipv-wiki] | | [install][ipv-raw] | [GF][ipv-gf] [OU][ipv-ou] | 2016.05.17 | 2021.11.30 |
39
- | [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2021.07.21 |
39
+ | [GitHub in VSCode][ivs-wiki] | | [install][ivs-raw] | [GF][ivs-gf] [OU][ivs-ou] | 2021.02.11 | 2022.01.05 |
40
40
| [GitHub indent comments][ioc-wiki] | | [install][ioc-raw] | [GF][ioc-gf] [OU][ioc-ou] | 2017.03.15 | 2021.07.21 |
41
41
| [GitHub issue add details][iad-wiki] | | [install][iad-raw] | [GF][iad-gf] [OU][iad-ou] | 2018.01.05 | 2021.11.30 |
42
42
| [GitHub issue comments][ic1-wiki] | | [install][ic1-raw] | [GF][ic1-gf] [OU][ic1-ou] | 2016.04.04 | 2021.07.21 |
Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name GitHub in VSCode
3
- // @version 0.1.2
3
+ // @version 0.1.3
4
4
// @description A userscript that adds a button to open a repo in VSCode using github1s
5
5
// @license MIT
6
6
// @author Rob Garrison
7
7
// @namespace https://github.com/Mottie
8
8
// @include https://github.com/*
9
9
// @run -at document-idle
10
- // @grant none
10
+ // @grant GM_addStyle
11
11
// @connect github.com
12
12
// @connect githubusercontent.com
13
13
// @require https://greasyfork.org/scripts/398877-utils-js/code/utilsjs.js?version=952600
75
75
const margin = goToFile . classList . contains ( "mr-2" ) ? "mr-2" : "ml-2" ;
76
76
const link = make ( {
77
77
el : "a" ,
78
+ id : "github-in-vscode" ,
78
79
className : `ghiv-link btn ${ margin } tooltipped tooltipped-n` ,
79
80
attrs : {
80
81
href : `https://github1s.com${ window . location . pathname } ` ,
85
86
html : vsCodeIcon
86
87
} ) ;
87
88
goToFile . before ( link ) ;
89
+ GM_addStyle ( "@media print { #github-in-vscode { display: none; } }" ) ;
88
90
}
89
91
90
92
on ( document , "ghmo:container pjax:end" , init ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-userscripts" ,
3
- "version" : " 1.0.298 " ,
3
+ "version" : " 1.0.299 " ,
4
4
"description" : " Userscripts to add functionality to GitHub" ,
5
5
"license" : " MIT" ,
6
6
"repository" : " Mottie/GitHub-userscripts" ,
You can’t perform that action at this time.
0 commit comments