github1s

1s open github code with vscode

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @run-at document-start
// @name        github1s
// @namespace   https://greasyfork.org/zh-CN/scripts/422231-github1s
// @description 1s open github code with vscode
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @include    *://github.com*
// @version     2.1
// @grant       none
// ==/UserScript==

$(document).ready(function(){
   $("h1.d-flex.flex-wrap.flex-items-center.break-word.f3.text-normal").prepend('<a id="__edit_by_vscode" class="btn btn-primary btn-sm mr-2">编辑</a>')
  
  $("#__edit_by_vscode").on("click",function(){
    window.open(window.location.href.replace('github.com','github1s.com'))
  })
})