我想在新的Greasemonkey腳本的元數據中添加一個默認條目。如何更改新的Greasemonkey腳本中的默認元數據?
目前,當您使用新UserScript ...菜單,你會得到這樣的對話(我填寫的最小必填字段,剪貼板是空的):
這給了這樣一個新的腳本:
// ==UserScript==
// @name _Sample default Greasemonkey script
// @namespace _pc
// @include http://stackoverflow.com/questions/*
// @version 1
// ==/UserScript==
但是,我想要@require
jQuery併爲每個默認腳本添加一個@author
字段。因此,它默認代碼看起來像這樣:
// ==UserScript==
// @name _Sample default Greasemonkey script
// @namespace _pc
// @include http://stackoverflow.com/questions/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @author me
// @version 1
// ==/UserScript==
我該怎麼辦呢?當我編輯greasemonkey.jar(在文件夾擴展名中)並添加行:@require http://[link to jquery from google]
它不起作用,並且Greasemonkey在打開(¿文件?)時出現問題。
如何更改默認Metadata Block指令?