aboutsummaryrefslogtreecommitdiffstats
path: root/auto_detect_link.js
diff options
context:
space:
mode:
authoranekos2008-07-30 11:32:00 +0000
committeranekos2008-07-30 11:32:00 +0000
commitee197271dfe2709684e910cc67ddeed3b3975464 (patch)
treed188038f23d1ebe3eb9c310c5409e6e884f6772e /auto_detect_link.js
parent49fe9112c6b738b737d245f9b88668d26192c293 (diff)
downloadvimperator-plugins-ee197271dfe2709684e910cc67ddeed3b3975464.tar.bz2
使っていない関数を削除 getElements?ByXPath
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@16885 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_detect_link.js')
-rw-r--r--auto_detect_link.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/auto_detect_link.js b/auto_detect_link.js
index c6156a0..e5b3e30 100644
--- a/auto_detect_link.js
+++ b/auto_detect_link.js
@@ -2,7 +2,7 @@
// @name Auto Detect Link
// @description-ja (次|前)っぽいページへのリンクを探してジャンプ
// @license Creative Commons 2.1 (Attribution + Share Alike)
-// @version 1.0.1
+// @version 1.0.2
// ==/VimperatorPlugin==
//
// Usage:
@@ -238,23 +238,6 @@
}
- // XPath
- function getElementByXPath (xpath, root) {
- let res = content.document.evaluate(xpath, root, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
- if (res)
- return res.singleNodeValue;
- }
-
-
- // XPath
- function getElementsByXPath (xpath, root) {
- let result = [], res = content.document.evaluate(xpath, root, null, 7, null);
- for (let i = 0; i < res.snapshotLength; i++)
- result.push(res.snapshotItem(i));
- return result;
- }
-
-
// リンクのフィルタ
function linkFilter (link) {
return link.href && !link.href.match(/@/) && link.href.match(/^((https?|file|ftp):\/\/|javascript:)/) && link.textContent;