Imacros help needed!

cnn8193

Regular Member
Joined
Oct 26, 2010
Messages
336
Reaction score
105
Hi guys,
I am using Firefox profiles and Imacros Firefox plugin 8.9.7 with FF version 56.0 (old staff but free and works with js).
My big and difficult question is: There is a setting in Imacros plugin which allows to choose custom folder, where my imacros files are stored. For example: C:\\user\Documents\Macros
Now, I need to change it not using plugin settings, but to find a file which stores the folder path information and change it there.
Why?
Because I use 300 profiles and minor change in folders structure makes me change every profile one by one instead of copy and paste the file with the correct path.
I have looked over whole internet already and couldn't find an answer.
Thank you in advance!
 
Yes its possible, you just have to know a little bit
about firefox folder structure.

I did simmilar tasks in the past and here are some
points you need to know in order to do it.

Every ffox profile folder contains prefs.js file in
its data folder. Manipulating this file is what you
need to do. For changes to take effect after
manipulation ffox browser must be cloesd, and
on next start of browser your changes would
be reflected in browser profiles you manipulated.

So you need to create a bot that will open prefs.js
file on all 300 profile paths and change needed values.
prefs.js is simple txt file and your bot just need to
find certain lines, and replace them with your desired
values.

The lines that you need to find are as follows:

Code:
user_pref("extensions.imacros.close-sidebar", false);
user_pref("extensions.imacros.defdatapath", "H:\\FirefoxPortable47-000\\Data\\profile\\iMacros\\Datasources");
user_pref("extensions.imacros.defdownpath", "H:\\FirefoxPortable47-000\\Data\\profile\\iMacros\\Downloads");
user_pref("extensions.imacros.deflogpath", "H:\\FirefoxPortable47-000\\Data\\profile\\iMacros");
user_pref("extensions.imacros.defsavepath", "H:\\FirefoxMacro\\Macros");
user_pref("extensions.imacros.profiler-enabled", false);
user_pref("extensions.imacros.store-in-profile", true);
user_pref("extensions.imacros.toolbar-checked", true);
user_pref("extensions.imacros.version", "8.6.0.1-signed");

Your lines in your version of ffox may be different,
but basicaly you just need to write a simple text
manipulation script that will find lines starting with
mentioned lines and replace them with your desired
values.

You can manipulate any of user pref lines while
browser is not active and when you start your browser
next time it will configure your changes and accept them.

That said you can for example change lines that
control proxies, so you can change or assign new
proxies for every profile without the need to change
proxy for every individual browser instance through
standard proxy menu inside browser.

So you just need a text file with all 300 file paths of
every prefs.js file and a script or software which then
goes to that path and opens every prefs.js file and
deploys serch for needed lines along with ider replacing
them, or firstly deleting them and than applying new values.

Hope this helps, I did it many times for different input
settings manipulation and it always worked good, especially
was handy to change proxy settings for every profile fast.
 
Back
Top