3 <title>Inspectable pages
</title>
6 background-color: rgb(
245,
245,
245);
7 font-family: Helvetica, Arial, sans-serif;
8 text-shadow: rgba(
255,
255,
255,
0.496094)
0px
1px
0px;
23 -webkit-box-orient: horizontal;
24 -webkit-box-lines: multiple;
31 text-decoration: initial;
37 background-attachment: scroll;
38 background-origin: padding-box;
39 background-repeat: no-repeat;
40 border:
4px solid rgba(
184,
184,
184,
1);
42 -webkit-transition-property: background-color, border-color;
43 -webkit-transition: background-color
0.15s,
0.15s;
44 -webkit-transition-delay:
0,
0;
48 background-color: rgba(
242,
242,
242,
1);
49 border-color: rgba(
110,
116,
128,
1);
53 .thumbnail.connected {
57 .thumbnail.connected:hover {
58 border-color: rgba(
184,
184,
184,
1);
59 color: rgb(
110,
116,
128);
63 display: inline-block;
74 text-overflow: ellipsis;
77 background: no-repeat
0;
78 background-size:
16px;
79 padding:
2px
0px
0px
20px;
80 margin:
4px
0px
0px
4px;
86 var tabsListRequest
= new XMLHttpRequest();
87 tabsListRequest
.open("GET", "/json", true);
88 tabsListRequest
.onreadystatechange
= onReady
;
89 tabsListRequest
.send();
93 if(this.readyState
== 4 && this.status
== 200) {
94 if(this.response
!= null)
95 var responseJSON
= JSON
.parse(this.response
);
96 for (var i
= 0; i
< responseJSON
.length
; ++i
)
97 appendItem(responseJSON
[i
]);
101 function appendItem(item_object
) {
103 if (item_object
.devtoolsFrontendUrl
) {
104 frontend_ref
= document
.createElement("a");
105 frontend_ref
.href
= item_object
.devtoolsFrontendUrl
;
106 frontend_ref
.title
= item_object
.title
;
108 frontend_ref
= document
.createElement("div");
109 frontend_ref
.title
= "The tab already has an active debug session";
111 frontend_ref
.className
= "frontend_ref";
113 var thumbnail
= document
.createElement("div");
114 thumbnail
.className
= item_object
.devtoolsFrontendUrl
?
115 "thumbnail" : "thumbnail connected";
116 thumbnail
.style
.cssText
= "background-image:url(" +
117 item_object
.thumbnailUrl
+
119 frontend_ref
.appendChild(thumbnail
);
121 var text
= document
.createElement("div");
122 text
.className
= "text";
123 text
.innerText
= item_object
.description
|| item_object
.title
;
124 text
.style
.cssText
= "background-image:url(" +
125 item_object
.faviconUrl
+ ")";
126 frontend_ref
.appendChild(text
);
128 var item
= document
.createElement("p");
129 item
.className
= "item";
130 item
.appendChild(frontend_ref
);
132 document
.getElementById("items").appendChild(item
);
136 <body onload='onLoad()'
>
137 <div id='caption'
>Inspectable pages
</div>