diff options
author | mitsugu oyama | 2014-12-16 10:24:23 +0900 |
---|---|---|
committer | mitsugu oyama | 2014-12-16 10:24:23 +0900 |
commit | 03d5778078aff9e5102e02567b098109260d2c37 (patch) | |
tree | b9a747fc17cd148052d3c6231055b965dd09b002 /pixiv.js | |
parent | f29a6ac4cc195b6210be0292a899423423e9f768 (diff) | |
download | vimperator-plugins-03d5778078aff9e5102e02567b098109260d2c37.tar.bz2 |
bug fix
画像コンテンツのページの小さな画像をダウンロードしてしまっていた
バグを修正し、オリジナルサイズの画像をダウンロードするように修正
した。
Diffstat (limited to 'pixiv.js')
-rw-r--r-- | pixiv.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -214,6 +214,9 @@ commands.addUserCommand( // {{{ save single image file let getImageUrl=function(pContents){ let url = pContents.getElementsByClassName("_layout-thumbnail ui-modal-trigger")[0].childNodes.item( 0 ).getAttribute( "src" ); + url = url.replace( /\/.\/[0-9][0-9][0-9]x[0-9][0-9][0-9]\/img\-master/, "/img-original" ); + url = url.replace( /_master[0-9][0-9][0-9][0-9]/, "" ); + url = url.replace( /_m/, "" ); return url; }; |