Changeset 17111 for lang/javascript/vimperator-plugins/trunk
- Timestamp:
- 08/05/08 20:19:38 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/auto_detect_link.js
r16885 r17111 239 239 240 240 241 // 要素が表示されているか? 242 function isVisible (element) { 243 return !(element.style && element.style.display.match(/none/)) && (!element.parentNode || isVisible(element.parentNode)) 244 } 245 246 241 247 // リンクのフィルタ 242 function link Filter (link) {243 return link.href && !link.href.match(/@/) && link.href.match(/^((https?|file|ftp):\/\/|javascript:)/) && link.textContent;248 function linkElementFilter (elem) { 249 return isVisible(elem) && elem.href && !elem.href.match(/@/) && elem.href.match(/^((https?|file|ftp):\/\/|javascript:)/) && elem.textContent; 244 250 } 245 251 … … 251 257 // Anchor 252 258 for each (let it in content.document.links) { 253 if (link Filter(it))259 if (linkElementFilter(it)) 254 260 result.push({ 255 261 type: 'link',
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)