GOTO URL = javascript:myscriptfunction not working

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
Karm
Posts: 3
Joined: Wed Aug 10, 2016 6:11 pm

GOTO URL = javascript:myscriptfunction not working

Post by Karm » Wed Feb 01, 2017 7:48 pm

Hello guys, i have iMacros version 8.9.7 and Firefox 50.1.0, i have a script for title case, its no longer working, maybe you guys could help, i think it is due to firefox update, i haven update i macro extensions due that it break 90% of my codes and 100% of my automation.
!EXTRACT = JOHN DOE

Code: Select all

GOTO URL = javascript.titleCase({{!EXTRACT}});
JS Code, before it was running pretty good.

Code: Select all

function titleCase(str) {
  if ((str===null) || (str===''))
       return false;
  else
   str = str.toString();

 return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
} 
Post Reply