2 setTimeout(function() {
3 var $top = $("html body");
4 $top.find('[class~="data"]').each(function() {
5 var help = $(this).attr('data-help'),
6 type = $(this).attr('data-type'),
7 xpath = $(this).attr('data-xpath'),
8 tag = $(this).attr('data-tag'),
11 output += "<b>Help</b>: " + help + "<br/>";
14 output += "<b>Type</b>: " + type + "<br/>";
17 output += "<div class='xpath-wrapper'>"
18 + "<a class='xpath-link' href='#'>"
19 + "show xpath</a><div class='xpath'>"
20 + xpath + "</div></div><br/>";
22 if (output.length > 0) {
23 output = "<div>" + output + "</div>";
28 title: "<b>" + tag + "</b>",
31 div.find(".xpath-link")
33 var xpath = $(this).next();
34 if (xpath.is(":hidden")) {
36 $(this).text("hide xpath");
39 $(this).text("show xpath");