【发布时间】:2017-08-20 16:27:14
【问题描述】:
假设我在 GitHub 上有一个包含 3 个文件的存储库:
- myGreasemonekyScript.js
- readme.md
- license.md
myGreasemonekyScript.js 存储一个 Greasemonkey 脚本:
// ==UserScript==
// @name facebook
// @namespace nms
// @include http://*.example.com/*
// @include https://*.example.com/*
// @version 1
// @grant none
// ==/UserScript==
// The rest of the script...
有没有办法只从 Greasemonkey 调用它,以便 本地 Greasemonkey 脚本文件只包含(包含)位于 GitHub 中的远程版本?
注意:我想这样做的原因是极简主义,而不是在本地有两个版本(GM 脚本文件和另一个文件夹中的备份),我想将代码编辑集中在一个地方,而不需要每次重新复制每个文件之间的更改。
【问题讨论】:
标签: javascript include greasemonkey