转到扩展 > Tampermonkey > 允许访问文件 url
然后,将您的脚本设置为:
// ==UserScript==
// @name Acecool - Video Site - Ultimate Video Site Management, Ad Removal, Redirection, Direct-Linking and more!
// @author Acecool
// @namespace Acecool
// @version 0.0.1
// @description Replaces encoded-links with decoded direct-links on episode finder sites.
// @description Automatically click the "continue" button, and attempt to skip the countdown if any, on video watching sites.
// @description Remove ad panels on video watching sites.
// @match http://*/*
// @require http://code.jquery.com/jquery-latest.js
// @require file:///C:/AcecoolGit/acecooldev_userscripts/libraries/acecool_functions_lib.js
// @require file:///C:/AcecoolGit/acecooldev_userscripts/video_sites/video_site_ultimate_tool.js
// @grant GM_xmlhttpRequest
// ==/UserScript==
我知道这个帖子作者有点晚了,但这就是我的发展方式......
然后,脚本被设置为正确的标题,所以我包含的示例文件:video_site_ultimate_tool.js 是
// ==UserScript==
// @name Acecool - Video Site - Ultimate Video Site Management, Ad Removal, Redirection, Direct-Linking and more!
// @author Acecool
// @namespace Acecool
// @version 0.0.1
// @description Replaces encoded-links with decoded direct-links on episode finder sites.
// @description Automatically click the "continue" button, and attempt to skip the countdown if any, on video watching sites.
// @description Remove ad panels on video watching sites.
// @match http://*/*
// @require http://code.jquery.com/jquery-latest.js
// @require file:///C:/AcecoolGit/acecooldev_userscripts/libraries/acecool_functions_lib.js
// @require file:///C:/AcecoolGit/acecooldev_userscripts/video_sites/video_site_ultimate_tool.js
// @grant GM_xmlhttpRequest
// ==/UserScript==
alert( 'test script is running from the file system instead of from TM...' );
我对它们进行了相同的设置(好吧,我将文件系统脚本中的 @requires 更改为 http 变体,因此 functions_lib 进入 bitbucket 而 video_site_ultimate_tool 将被删除,并且脚本在复制到我的 bitbucket 存储库时放入...
能够使用外部编辑器并立即显示更改确实加快了开发速度...
希望这可以帮助下一个人..