aboutsummaryrefslogtreecommitdiffstats
path: root/direct_bookmark.js
diff options
context:
space:
mode:
authormattn2008-04-21 05:43:13 +0000
committermattn2008-04-21 05:43:13 +0000
commit3a59ae33f5d683680bde48b4b33d048d5ee82c5c (patch)
treeb20101d866b5243e117a9ee3bad95257d1b14692 /direct_bookmark.js
parent47ec0ddbce06ce239a64d50613beb7428394cfc5 (diff)
downloadvimperator-plugins-3a59ae33f5d683680bde48b4b33d048d5ee82c5c.tar.bz2
lang/javascript/vimperator-plugins/trunk/direct_bookmark.js:
* appendChildした瞬間にパースされimgがロードされてしまっているようです。スピードアップの為ignoreTagsに戻します。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10061 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'direct_bookmark.js')
-rw-r--r--direct_bookmark.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/direct_bookmark.js b/direct_bookmark.js
index 00dc01c..eb97d1b 100644
--- a/direct_bookmark.js
+++ b/direct_bookmark.js
@@ -1,6 +1,6 @@
// Vimperator plugin: 'Direct Post to Social Bookmarks'
// Version: 0.05
-// Last Change: 20-Apr-2008. Jan 2008
+// Last Change: 21-Apr-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
// Parts:
@@ -314,7 +314,7 @@
xhr.open("GET","http://b.hatena.ne.jp/my",false);
xhr.send(null);
- var mypage_html = parseHTML(xhr.responseText, ['img/', 'script/']);
+ var mypage_html = parseHTML(xhr.responseText, ['img', 'script']);
var tags = getElementsByXPath("//ul[@id=\"taglist\"]/li/a",mypage_html);
tags.forEach(function(tag){
@@ -381,7 +381,7 @@
xhr.open("GET","http://clip.livedoor.com/clip/add?link=http://example.example/",false);
xhr.send(null);
- var mypage_html = parseHTML(xhr.responseText, ['img/', 'script/']);
+ var mypage_html = parseHTML(xhr.responseText, ['img', 'script']);
var tags = getElementsByXPath("id(\"tag_list\")/span",mypage_html);
tags.forEach(function(tag){