iMacros & Node.js

Discussions and Tech Support specific to the iMacros Firefox Add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Trax
Posts: 43
Joined: Thu Sep 13, 2012 4:07 pm
Contact:

iMacros & Node.js

Post by Trax » Sat Apr 02, 2016 5:37 pm

I found this by mistake but it seems it is possible to use iMacros with node.js, developing a complex script will take more time but node is so powerful it opens a whole world of possibilities.

You need node.js, duh, and browserify from browserify.org.

Then you can simply follow the tutorial from http://browserify.org/ home page to write a basic script, you'll have to use the node.js command prompt if you are on windows. I tested it myself it seems to work fine.

This is a simple script I tried, the basic script the bundled one is huge and it increases which each module added.

Code: Select all

var unique = require('uniq');
var _ = require('underscore') // one of the most useful node modules out there.

var data = [1, 2, 2, 3, 4, 5, 5, 5, 6];

alert(unique(data));

alert(_.shuffle([1, 2, 3, 4, 5, 6]))
Results were,:

Code: Select all

1,2,3,4,5,6

5,2,3,4,1,6 // this one was different each time
Tested with

Windows 7
node.js 0.12.2
Firefox 45.0.1
iMacros 8.9.6
Post Reply