I just came up with an idea and it seems to work.
Load javascript with loadUrl when the page finishes loading ( onProgressChange up to 100%). Js code is similar to
javascript:(function() { var wml_root = document.getElementsByTagName('wml'); if (wml_root && wml_root.length > 0) {
source share