github1s

1s open github code with vscode

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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