Changeset 20905
- Timestamp:
- 10/07/08 18:52:26 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/niconicomylistanywhere.user.js
r20626 r20905 30 30 if (uri && document.evaluate) { 31 31 var h = document.evaluate( 32 "id('PAGEHEADER')// a[contains(@href, 'logout')]/..",32 "id('PAGEHEADER')//td/a[contains(@href, 'my')]/../..", 33 33 document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null 34 34 ).singleNodeValue; … … 37 37 a.href = uri; 38 38 a.title = title; 39 a.style.color = "#FFF";40 39 a.innerHTML = title.length > 20 ? (title.substr(0, 20) + "...") : title; 41 h.insertBefore(document.createTextNode(" | "), h.firstChild); 42 h.insertBefore(a, h.firstChild); 40 var td = document.createElement("td"); 41 td.appendChild(a); 42 h.insertBefore(td, h.firstChild); 43 43 } 44 44 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)