

Ce bookmarklet ouvre une nouvelle fenêtre après demande de confirmation
Bookmarklet inline Style_Computed
Bookmarklet hébergé sur ce site Style_Computed!
(function() {
newwin = window.open('','');
if (newwin) newwin.document.write('<html><head><title>Computed style</title></head><body><pre>(Waiting for mouseover)</pre></body></html>');
function B(t) {
return !(t=='TBODY'||t=='TD'||t=='THEAD'||t=='TR'||t=='TH');
}
function A(n) {
var t=n.tagName?n.tagName.toUpperCase():'#text';
if(t=='BODY') return t;
return A(n.parentNode) + ( B(t) ? ' > '+t : ' '+t.toLowerCase() ) + (n.className?'.'+n.className:'') + (n.id?'#'+n.id:'');
}
document.body.onmouseover = function(e) {
e=e?e:event;
var s,g = e.target;
g=g?g:e.srcElement;
try {
s = A(g);
}
catch(err){
s = err.message;
}
s+='\n';
if (g.currentStyle) {
cs = g.currentStyle;
} else if (document.defaultView && document.defaultView.getComputedStyle) {
cs = document.defaultView.getComputedStyle(g,'');
}
for (prop in cs) {
try {
if (typeof cs[prop] != 'function')
s+=prop+' = '+cs[prop]+'\n';
}
catch(e){
}
}
try {
newwin.document.body.innerHTML = '<pre>' + s + '</pre>';
}
catch(e){
}
return true;
};
})()