您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
GitHub在线预览
// ==UserScript== // @name GitHub 在线预览代码插件 // @namespace https://github.com/k1995/github-i18n-plugin/ // @version 0.0.2 // @description:zh GitHub在线预览 // @description:zh-cn GitHub在线预览 // @description:en "GitHub Onlion View" // @author [email protected] // @match https://github.com/* // @match https://gist.github.com/* // @grant none // @license MIT // @description GitHub在线预览 // ==/UserScript== (function() { 'use strict'; document.querySelectorAll('#repository-container-header').forEach(element => { let btn = document.createElement('button') btn.innerText = '一键在线预览代码' element.after(btn) btn.style.width = '150px' btn.style.height = '40px' btn.style.backgroundColor = 'red' btn.style.borderRadius = '8px' btn.addEventListener('click',(e)=>{ var url = window.location.pathname window.open("https://gitpod.io/#/github.com"+url) }) }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址