get_status.js 295 B

123456789
  1. var baseNode = document.getSelection().baseNode;
  2. if (baseNode === null) return ''; else {
  3. (f = function(node){
  4. var tag = node.tagName;
  5. if (tag === 'BODY') return '';
  6. if (tag === 'DIV') tag = node.getAttribute('CLASS');
  7. return f(node.parentNode) + '/' + tag;
  8. })(baseNode.parentNode);
  9. }