provoquestosito wrote:I need to reset value in firefox about:config with javascript or imacros.
I use
Code: Select all
firefox 56 imacros 8.9.7 and windows 7 64 bit.
I found the javascript compatible with imacros to set value in about:config via javascript.
To set the value in about config i use this code:
Code: Select all
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:\");
Now i want to know if exist a similar solution to reset the value to return with original values.
Thanks
Hein...?, Oh...!?, already saw this Thread, already did "some Thinking", but didn't reply because FCI not mentioned..., hum, here it is though... Maybe you silently updated your OP...? But "registered in 2010 and 40 Posts" is new Info for me now, you only had some "History" about Batch Files, not on our Forum then I guess...?
Ah no, found it, ... on SOF:
-
Reset original value about:config firefox via javascript or imacros
And yep indeed, FCI not mentioned...
No pb to post parallel Threads in different Tech Forums, but maintain the same "Quality" everywhere... Why do you mention your FCI here and not on SOF...!?
=> FCIM for SOF...
+ Upload your Screenshot here directly to your Thread instead of some external Image Hosting Site as all those Sites all go dark or commercial or clean up their Data after a while which renders such Threads useless with some empty Image Container... And 'imgur' is the only one I haven't blocked myself, because widely used on SOF indeed...
Hum, registered in 2010 and 40 Posts, Okay..., then I guess that could/would explain why you mention your FCI here and not on SOF, I haven't checked your "History" yet, I hope you don't have any (older) Threads waiting for 'Follow-up/Finish and share Script' Status from your Side... (Or this is your "chance" to finish them "correctly" and useful for the Forum, I'll check again "tomorrow" after some sleep...
)
Hum, 2010, oh..., nice, you'll be of pretty Advanced Level then I guess, good-good...!
Hum, first
Thread I check (on SOF) => FCI not mentioned and no Follow-up, I guess you still have some mini "Homework" to do then, ah-ah...!
And probably the same on our Forum, I reckon... OK, I'll check tomorrow... (And don't think to be "clever" by deleting older Threads if you didn't get any Answer then
, but managed to solve that Qt by yourself..., => share your Solution and how you solved your Pb..., there are no "stupid" Qt's...
)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...