// ==UserScript== // @name GitHub 工具箱 // @name:en GitHub ToolBox // @version 1.0.0 // @description 添加用VS Code阅读代码按钮(github1s) // @description:en Read code with VS Code(github1s) // @author sakura-flutter // @namespace https://github.com/sakura-flutter/tampermonkey-scripts // @license MIT // @compatible chrome Latest // @compatible firefox Latest // @compatible edge Latest // @noframes // @grant window.onurlchange // @match https://github.com/* // @downloadURL https://update.greasyfork.icu/scripts/423178/GitHub%20%E5%B7%A5%E5%85%B7%E7%AE%B1.user.js // @updateURL https://update.greasyfork.icu/scripts/423178/GitHub%20%E5%B7%A5%E5%85%B7%E7%AE%B1.meta.js // ==/UserScript== /******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; ;// CONCATENATED MODULE: ./src/utils/selector.ts const $ = document.querySelector.bind(document); const $$ = document.querySelectorAll.bind(document); ;// CONCATENATED MODULE: ./src/scripts/github/index.js function insert1sButton() { const actions = $('.pagehead-actions'); if (actions == null || $('#github1s-button')) return; const btnHTML = '