鍍金池/ 問答/網(wǎng)絡安全  HTML/ Greasemonkey4 兼容Firefox57 該怎么添加自定義腳本?

Greasemonkey4 兼容Firefox57 該怎么添加自定義腳本?

Greasemonkey官網(wǎng)

官網(wǎng)說

When navigating to a URL which ends with .user.js , Greasemonkey will trigger the installation dialog.

機翻:

當導航到以.user.js結尾的URL時, Greasemonkey將觸發(fā)安裝對話框。 請注意,必須啟用 Greasemonkey才能這樣做。

但我拖動寫好的本地文件,直接就打開了
file:///C:/Users/Administrator/Desktop/test.user.js

在github上托管

警告:一個火狐瀏覽器的bug阻止了一些網(wǎng)站(包括Github和Gist)的用戶腳本的安裝。

如題,該怎么添加呢?

謝謝

回答
編輯回答
厭遇

無奈,只好使用python3開個服務器了

開啟CMD定位到腳本所在文件夾

python -m http.server 80

火狐訪問http://localhost/

@echo off
cd %cd%\\Greasemonkey4\\
python -m http.server 80
cmd

放到腳本所在文件夾同級目錄
保存為SimpleHTTPServer.bat
雙擊運行就好

比如:

D:
 |- Greasemonkey4
 |    |- test.user.js
 |- SimpleHTTPServer.bat
2018年6月27日 21:02