您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
添加一个按钮来打开GitHub上的原始链接。Add a button to open the GitHub raw link.
// ==UserScript== // @name GitHub原始链接 // @namespace Linxi // @version 1.2 // @description 添加一个按钮来打开GitHub上的原始链接。Add a button to open the GitHub raw link. // @author 林夕 // @match https://github.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function openRawLink() { var rawUrl = window.location.href.replace('/blob', '').replace('github.com', 'raw.githubusercontent.com'); window.location.href = rawUrl; } var rawButton = document.createElement('button'); rawButton.innerHTML = '打开raw';//按钮名字 rawButton.style.transform = 'scale(1.5)';//按钮大小 rawButton.style.position = 'fixed'; rawButton.style.right = '130px';//按钮左右 rawButton.style.bottom = '80px';//按钮上下 rawButton.addEventListener('click', openRawLink); document.body.appendChild(rawButton); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址