diff options
author | mattn | 2008-04-21 05:43:13 +0000 |
---|---|---|
committer | mattn | 2008-04-21 05:43:13 +0000 |
commit | 3a59ae33f5d683680bde48b4b33d048d5ee82c5c (patch) | |
tree | b20101d866b5243e117a9ee3bad95257d1b14692 | |
parent | 47ec0ddbce06ce239a64d50613beb7428394cfc5 (diff) | |
download | vimperator-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
-rw-r--r-- | direct_bookmark.js | 6 |
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){
|