diff options
author | mitsugu oyama | 2011-07-28 07:44:36 +0900 |
---|---|---|
committer | mitsugu oyama | 2011-07-28 07:44:36 +0900 |
commit | be944522e55c21460fae614cc06c8bd874e9d603 (patch) | |
tree | 45c5e177eb95dc72b892fddbb33b64f7ea0b3b9b | |
parent | d1e2b94bd10c50ce56b9f1a3b172287be9223455 (diff) | |
download | vimperator-plugins-be944522e55c21460fae614cc06c8bd874e9d603.tar.bz2 |
modified for site renewal ( mid-flow )
-rw-r--r-- | tinami.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ // INFO // var INFO = -<plugin name="tinami.js" version="0.2" +<plugin name="tinami.js" version="0.3" summary="Download image from tinami" href="http://github.com/vimpr/vimperator-plugins/blob/master/tinami.js" xmlns="http://vimperator.org/namespaces/liberator"> @@ -168,7 +168,7 @@ commands.addUserCommand( return false; }; - if(0<contents.getElementsByClassName('bigger').length){ +// if(0<contents.getElementsByClassName('bigger').length){ xhrImgInfo=Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(); xhrImgInfo.QueryInterface(Ci.nsIDOMEventTarget); xhrImgInfo.addEventListener("load",trueImgInfo,false); @@ -178,10 +178,12 @@ commands.addUserCommand( xhrImgInfo.setRequestHeader('Referer',contents.URL); xhrImgInfo.setRequestHeader('Cookie',cookie); xhrImgInfo.send(null); +/* }else{ imgUrl=contents.getElementsByClassName('draggable_img').item(0) .firstChild.getAttribute('src'); saveImag(); } +*/ } ); |