Show
Ignore:
Timestamp:
07/30/08 20:32:00 (4 months ago)
Author:
anekos
Message:

使っていない関数を削除 getElements?ByXPath

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/auto_detect_link.js

    r16883 r16885  
    33// @description-ja (次|前)っぽいページへのリンクを探してジャンプ 
    44// @license        Creative Commons 2.1 (Attribution + Share Alike) 
    5 // @version        1.0.1 
     5// @version        1.0.2 
    66// ==/VimperatorPlugin== 
    77// 
     
    239239 
    240240 
    241   // XPath 
    242   function getElementByXPath (xpath, root) { 
    243     let res = content.document.evaluate(xpath, root, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); 
    244     if (res) 
    245       return res.singleNodeValue; 
    246   } 
    247  
    248  
    249   // XPath 
    250   function getElementsByXPath (xpath, root) { 
    251     let result = [], res = content.document.evaluate(xpath, root, null, 7, null); 
    252     for (let i = 0; i < res.snapshotLength; i++) 
    253       result.push(res.snapshotItem(i)); 
    254     return result; 
    255   } 
    256  
    257  
    258241  // リンクのフィルタ 
    259242  function linkFilter (link) {