github1s

1s open github code with vscode

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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'))
  })
})