让iMacro使用Firefox的about:config

让iMacro使用Firefox的about:config,firefox,imacros,Firefox,Imacros,是否有任何方法可以使用imacros更改about:config中的值 我想尽了一切可能的办法,但没有找到任何解决办法 我对javascript了解不多,所以想不出办法,但我知道通过java脚本有办法。可以为Firefox的Imacros使用javascript接口。 保存在macro.js中并运行以下代码: "use strict"; iimPlayCode("URL GOTO=about:config\n WAIT SECONDS=1"); var prefs = Components.cl

是否有任何方法可以使用imacros更改about:config中的值

我想尽了一切可能的办法,但没有找到任何解决办法


我对javascript了解不多,所以想不出办法,但我知道通过java脚本有办法。

可以为Firefox的Imacros使用javascript接口。 保存在macro.js中并运行以下代码:

"use strict";
iimPlayCode("URL GOTO=about:config\n WAIT SECONDS=1");
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);

prefs.setBoolPref("pdfjs.disabled", true);
prefs.setIntPref("browser.download.folderList", 2);
prefs.setCharPref("browser.download.dir", "C:\\");

关于:配置不是一个网站。这是FireFox内部的设置。那么imacros是否会在about:config中更改FireFox的任何设置??