OK I was able to make it work... Sort of:
I Made this very simple macro for testing:
When I click "Share Macro" from the Edit menu there is an option to share a link on websites. The link look like this:
Code: Select all
javascript:(function() {try{var e_m64 = "UFJPTVBUJTIwV29ya3M=", n64 = "cHJvbXB0LmlpbQ==";if(!/^(?:chrome|https?|file)/.test(location)){alert('iMacros: Open webpage to run a macro.');return;}var macro = {};macro.source = decodeURIComponent(atob(e_m64));macro.name = decodeURIComponent(atob(n64));var evt = document.createEvent("CustomEvent");evt.initCustomEvent("iMacrosRunMacro", true, true, macro);window.dispatchEvent(evt);}catch(e){alert('iMacros Bookmarklet error: '+e.toString());}}) ();
And if I wrap that in an anchor tag like this (use single quotes!):
Code: Select all
<a href='javascript:(function() {try{var e_m64 = "UFJPTVBUJTIwV29ya3M=", n64 = "cHJvbXB0LmlpbQ==";if(!/^(?:chrome|https?|file)/.test(location)){alert('iMacros: Open webpage to run a macro.');return;}var macro = {};macro.source = decodeURIComponent(atob(e_m64));macro.name = decodeURIComponent(atob(n64));var evt = document.createEvent("CustomEvent");evt.initCustomEvent("iMacrosRunMacro", true, true, macro);window.dispatchEvent(evt);}catch(e){alert('iMacros Bookmarklet error: '+e.toString());}}) ();'>My test link</a>
I can make the link work at my site.
I could not get any of the url shorteners to work. Do they work?
I also wonder if the macro is encrypted in someway?