Changeset 16885 for lang/javascript/vimperator-plugins/trunk
- Timestamp:
- 07/30/08 20:32:00 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/auto_detect_link.js
r16883 r16885 3 3 // @description-ja (次|前)っぽいページへのリンクを探してジャンプ 4 4 // @license Creative Commons 2.1 (Attribution + Share Alike) 5 // @version 1.0. 15 // @version 1.0.2 6 6 // ==/VimperatorPlugin== 7 7 // … … 239 239 240 240 241 // XPath242 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 // XPath250 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 258 241 // リンクのフィルタ 259 242 function linkFilter (link) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)