您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
F1载入‘github1s’,F2载入‘gitpod.io’
// ==UserScript== // @name GitHub工程快捷载入在线VS Code // @namespace http://tampermonkey.net/ // @version 1.0 // @description F1载入‘github1s’,F2载入‘gitpod.io’ // @author You // @match https://github.com/* // @grant none // @license MIT // ==/UserScript== window.onload = function() { document.addEventListener('keydown', function(e) { var event = e ? e: window.event; var currKey = event.keyCode || event.which || event.charCode; // console.log(currKey); var url; if (currKey == 112) { // F1按键快捷打开 1s url = window.location.href; window.open('https://github1s' + url.substring(14), '_blank'); } else if (currKey == 113) { // F2按键快捷打开 gitpod url = window.location.href; window.open('https://gitpod.io/#/' + url.substring(8), '_blank'); } }); };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址