Search found 4 matches

by Lantus
Wed Apr 15, 2020 9:55 pm
Forum: Command Line and Scripting Interface
Topic: imacros with jquery and ajax
Replies: 1
Views: 1923

Re: imacros with jquery and ajax

Yes, it's totally possible. Load the constructor with the const XMLHttpRequest. To make multiple HTTP requests, you have to push them in an array. I made a function to do it... const XMLHttpRequest = Components.Constructor("@mozilla.org/xmlextras/xmlhttprequest;1"); var xhr = new Array(); // ARRAY O...
by Lantus
Mon Dec 17, 2018 11:47 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Save extracted DIV to new page/file
Replies: 1
Views: 2235

Re: Save extracted DIV to new page/file

There is a way to do it with a javascript macro... Something like: function writeFile(path,string,exact){//<versao>1.1</versao> //http://stackoverflow.com/questions/14677247/imacro-setting-variable-saveas-csv //import FileUtils.jsm Components.utils.import("resource://gre/modules/FileUtils.jsm"); //d...
by Lantus
Fri May 04, 2018 4:53 pm
Forum: iMacros for Firefox
Topic: Automatic Update Preference - about:config
Replies: 4
Views: 2092

Automatic Update Preference - about:config

Hi, My code - javascript - works perfectly on iMacros 8.8.1.1 So I want the code to set iMacros Auto-Update preference to OFF. I already have a piece of code, to set some of the preferences of about:config "use strict"; var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(...
by Lantus
Tue Jan 19, 2016 6:12 pm
Forum: General Support & Discussions
Topic: iMacros hangs up when WAIT SECONDS=3600 finished.
Replies: 4
Views: 3424

Re: iMacros hangs up when WAIT SECONDS=3600 finished.

I´m facing the same problem combining javascript and iimPlayCode.

Right after I play a code with iimPlayCode, any javascript I run, firefox freezes for about 120 seconds or more...
The code is usually "click some button"...