I try to use javascript "getElementsByTagName("BODY")" functions to get HTML source code from open Webpage. The function works in console, but it doesn’t work in Keyboard Maestro. After getting this HTML I want to beatify it (like this site http://jsbeautifier.org do). Maybe you know some ways to beatify it through Keyboard Maestro. Thank you!
P.S. I checked other javascripts from forum and javascript action seems to function.