我使用 HTML、CSS 和 JS 创建了一个工具。我希望可以通过 TamperMonkey 访问该工具。我发现了一个 TamperMonkey 脚本,其中创建者没有将其代码直接添加到脚本中,而是利用 @require 行来链接他的 Web 托管代码文件。
我正在尝试重现此内容,但我不想添加 https 链接,而是想从本地文件开始。
这是他的代码(匿名):
// ==UserScript==
// @name name
// @version version
// @author author
// @description description
// @match URL where the tool will be used
// @require https://hiscodelink1.js?raw=1
// @require https://hiscodelink2.js?raw=1
// @require https://hiscodelink3.class.js?raw=1
// ==/UserScript==
// See https://hiscodelink1.js?raw=1
Run Code Online (Sandbox Code Playgroud)
这是我的(匿名):
// ==UserScript==
// @name name
// @version version
// @author author
// @description description
// @match URL where the tool will be used (using the …Run Code Online (Sandbox Code Playgroud) tampermonkey ×1