aboutsummaryrefslogtreecommitdiffstats
path: root/pixiv.js
diff options
context:
space:
mode:
Diffstat (limited to 'pixiv.js')
-rw-r--r--pixiv.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/pixiv.js b/pixiv.js
index 38178c5..70e9e84 100644
--- a/pixiv.js
+++ b/pixiv.js
@@ -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;
};