Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Displate":{"useimg":1,"link":"^displate\\.com/displate/\\d+","url":":($[1]?'data:,':'')+$[0]","res":":\nlet sd, hd, n, t='';\nif($[1]){\n $[1]='https://'+$[1];\n n=1208/Math.max($[2],$[3]);\n sd=$[1]+Math.round($[2]*n)+'x'+Math.round($[3]*n)+'/'+$[4];\n hd=$[1]+$[4];\n}else{\n $=$._.match(/data-next-head=\"\">({.+?})</);\n $=$&&JSON.parse($[1])['@graph'].find(i=>i['@type']==='Product');\n t=$.description;\n $=$.image['@id'];\n sd=$.replace(/\\/(\\d+)x(\\d+)\\//,(...m)=>{n=1208/Math.max(m[1],m[2]);return '/'+Math.round(m[1]*n)+'x'+Math.round(m[2]*n)+'/'});\n hd=$.replace(/\\/\\d+x\\d+\\//,'/');\n}\nreturn sd||hd ? [[sd,t],[hd]] : ''","img":"^(cdn\\.displate\\.com/\\w+/)(\\d+)x(\\d+)/(\\d{4}-\\d{2}-\\d{2}/[^?]+).*"}}
Advertisement
Add Comment
Please, Sign In to add comment