diff --git a/plugins/artstation.js b/plugins/artstation.js index 33cac1b93..df3e060df 100644 --- a/plugins/artstation.js +++ b/plugins/artstation.js @@ -1,16 +1,22 @@ var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'artstation.com', - version:'0.1', + version:'0.2', prepareImgLinks: function (callback) { const res = []; - hoverZoom.urlReplace(res, - 'img[src*="artstation"]', + 'img[src]', + /(\/[^0-9]*\/\d+\/\d+\/\d+\/)(\d+\/)?(small|smaller_square|small_square|micro_square|medium|medium_wide|default)\//, + '$1original/', + 'a' + ); + + hoverZoom.urlReplace(res, + 'img[src]', /(\/[^0-9]*\/\d+\/\d+\/\d+\/)(\d+\/)?(small|smaller_square|small_square|micro_square|medium|medium_wide|default)\//, '$1large/', - 'a.project-image' + 'a' ); callback($(res), this.name);