如何在firefox上创建crontab greasemonkey脚本?

如何在firefox上创建crontab greasemonkey脚本?,firefox,firefox-addon,greasemonkey,Firefox,Firefox Addon,Greasemonkey,例如,我有这样的greasemonkey sript 以MP4格式下载YouTube视频 我想在firefox中的特殊时间用crontab运行greasemonkey srcipt。 例如,我想在linux中的crontab中创建这个任务,我已经测试了这个命令,但我认为这是错误的 0 18 * * * export DISPLAY=:1 && firefox && greasemonkey --Download YouTube Videos as MP4 正确

例如,我有这样的greasemonkey sript

以MP4格式下载YouTube视频

我想在firefox中的特殊时间用crontab运行greasemonkey srcipt。 例如,我想在linux中的crontab中创建这个任务,我已经测试了这个命令,但我认为这是错误的

0 18 * * * export DISPLAY=:1 && firefox && greasemonkey --Download YouTube Videos as MP4

正确的命令是什么?

Greasemonkey脚本可在您浏览网页时为您提供帮助。要做独立的(无头)工作,Python脚本之类的东西效果更好。为了节省时间,您可以验证
export DISPLAY=:1&&firefox&&greasemonkey——在命令行中以MP4
的形式下载YouTube视频。如果没有,它就不能在crontab中工作。这是一个命令行程序,几乎可以从任何网站下载在线视频,尤其是YouTube。您的crontab将看起来像
018***youtube dl-q“https://www.youtube.com/watch?v=dQw4w9WgXcQ“
(将该视频保存在您的主目录中)。