github1s

1s open github code with vscode

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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