mincerafter42 / picrew-download-bookmarklet

Bookmarklet to download Picrew image makers
5 stars 3 forks source link

Error can't download image #5

Open Greek-Cp opened 10 months ago

Greek-Cp commented 10 months ago

image

the result of erorr. G = data/part0_class0/asset_1.png gsap_3.8.0_min.js:10 Invalid property y set to 10 Missing plugin? gsap.registerPlugin() N @ gsap_3.8.0_min.js:10 gsap_3.8.0_min.js:10 Invalid property autoAlpha set to 0 Missing plugin? gsap.registerPlugin() N @ gsap_3.8.0_min.js:10 /en/app/image_maker/1165436/1043773/ih_SGw8iWzwBNFCfB5p.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_2 1fcf07d.js:2 G = data/part0_class0/asset_2.png /en/app/image_maker/1165436/1043773/ih_rFLEpTrmHMnjAQO0.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_3 1fcf07d.js:2 G = data/part0_class0/asset_3.png /en/app/image_maker/1165436/1043773/ih_8C9H3v6qNA8lnqn2.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_4 1fcf07d.js:2 G = data/part0_class0/asset_4.png /en/app/image_maker/1165436/1043773/ih_hNeSoNlO1DwI1Rrk.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_5 1fcf07d.js:2 G = data/part0_class0/asset_5.png /en/app/image_maker/1165436/1043773/ih_6DupYu9cEzDTQnAy.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 su : data/part1_class1/ 1fcf07d.js:2 tbbs asset_0 1fcf07d.js:2 G = data/part1_class1/asset_0.png /en/app/image_maker/1165436/1043768/ih_AtovXUjywmuOl59j.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_1 1fcf07d.js:2 G = data/part1_class1/asset_1.png /en/app/image_maker/1165436/1043768/ih_qwbCytWK5lIwp08L.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_2 1fcf07d.js:2 G = data/part1_class1/asset_2.png /en/app/image_maker/1165436/1043768/ih_ZVaKZB9crwyzpvsK.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_3 1fcf07d.js:2 G = data/part1_class1/asset_3.png 1165436:1 A preload for 'https://cdn.picrew.me/assets/player/20231205053304/css/8694c4d.css' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute. ih_ps27SsXHYHzoej4T.png:1

   Failed to load resource: the server responded with a status of 404 ()

1fcf07d.js:2 tbbs asset_4 1fcf07d.js:2 G = data/part1_class1/asset_4.png 1165436:1 Access to XMLHttpRequest at 'https://sa-lb.deliverimp.com/pbjs' from origin 'https://picrew.me' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. prebid-v7.54.4.js:5

   POST https://sa-lb.deliverimp.com/pbjs net::ERR_FAILED 204 (No Content)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043768/ih_HmbelsT2UNr8cB5g.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_5 1fcf07d.js:2 G = data/part1_class1/asset_5.png prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 prebid-v7.54.4.js:5

   POST https://pb.ladsp.com/adrequest/prebid 400 (Bad Request)

(anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 A @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 U.callBids @ prebid-v7.54.4.js:5 run @ prebid-v7.54.4.js:5 s @ prebid-v7.54.4.js:5 de @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 callBids @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:11 r. @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 s @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 o @ prebid-v7.54.4.js:5 then @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:59 (anonymous) @ prebid-v7.54.4.js:5 measureHookTime @ prebid-v7.54.4.js:5 (anonymous) @ prebid-v7.54.4.js:5 l @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 l @ prebid-v7.54.4.js:11 f @ prebid-v7.54.4.js:11 (anonymous) @ prebid-v7.54.4.js:11 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 ue.cmd.push @ prebid-v7.54.4.js:11 n @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 f_ @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:1 I @ gnshbrequest-v3.1.1.js:1 requestBids @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 __unstable_repetitiveRefresh @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 emit @ gnshbrequest-v3.1.1.js:169 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 (anonymous) @ gnshbrequest-v3.1.1.js:152 d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043768/ih_lmESfJq0AqTagHSF.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 su : data/part2_class2/ 1fcf07d.js:2 tbbs asset_0 1fcf07d.js:2 G = data/part2_class2/asset_0.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_ntarIh3XxFonwAR1.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_1 1fcf07d.js:2 G = data/part2_class2/asset_1.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_lAaEnlNxQWeCARlz.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_2 1fcf07d.js:2 G = data/part2_class2/asset_2.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_rHuFltA3TcPRdY34.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_3 1fcf07d.js:2 G = data/part2_class2/asset_3.png zdid=1875&initiator=qc&eventType=pageview&env=mWeb&gdpr=0&gdpr_consent=:1

   GET https://spl.zeotap.com/zdid=1875&initiator=qc&eventType=pageview&env=mWeb&gdpr=0&gdpr_consent= 404 (Not Found)

Image (async) o @ VM15994 quant.js:2 (anonymous) @ VM15994 quant.js:2 image @ VM15994 quant.js:2 (anonymous) @ VM15994 quant.js:2 Promise.then (async) w @ VM15994 quant.js:2 q @ VM15994 quant.js:2 y @ VM15994 quant.js:2 T @ VM15994 quant.js:2 ne @ VM15994 quant.js:2 oe @ VM15994 quant.js:2 (anonymous) @ VM15994 quant.js:2 load (async) E @ VM15994 quant.js:2 O @ VM15994 quant.js:2 re @ VM15994 quant.js:2 g @ VM15994 quant.js:2 Ne @ VM15994 quant.js:2 (anonymous) @ VM15994 quant.js:2 (anonymous) @ VM15994 quant.js:2 d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_RLsEhNNNF8pZcoAl.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_4 1fcf07d.js:2 G = data/part2_class2/asset_4.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_1lScTbbO8pD1YbCp.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_5 1fcf07d.js:2 G = data/part2_class2/asset_5.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043763/ih_AJHYNxygLLtxqSzt.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 su : data/part3_class3/ 1fcf07d.js:2 tbbs asset_0 1fcf07d.js:2 G = data/part3_class3/asset_0.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043746/ih_jpM38GNrH91SKR37.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_1 1fcf07d.js:2 G = data/part3_class3/asset_1.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043746/ih_HfgaxDvB09kO08Af.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_2 1fcf07d.js:2 G = data/part3_class3/asset_2.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043746/ih_WaOE1Dwx1IPOX8JT.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js:2 tbbs asset_3 1fcf07d.js:2 G = data/part3_class3/asset_3.png d491f0a.js:1

   GET https://picrew.me/en/app/image_maker/1165436/1043746/ih_3vifKtglaKmXKTTl.png 404 (Not Found)

(anonymous) @ d491f0a.js:1 l @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 r @ 3fc1be6.js:2 s @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ 3fc1be6.js:2 (anonymous) @ d491f0a.js:1 (anonymous) @ 1fcf07d.js:2 (anonymous) @ VM15321:1 1fcf07d.js

mincerafter42 commented 10 months ago

Which version of the bookmarklet are you using, which page are you trying to download from, and which browser are you using?

Greek-Cp commented 10 months ago

i'm using google chrome, and i'm little bit modify the script in version 1.6.1 in 5 month ago, but when i'm try again now after 5 month ago not using my custom script, i get error. can you fix that thanks.

if (location.hostname !== 'picrew.me' || !(location.pathname.includes('/image_maker/') || location.pathname.includes('/secret_image_maker/'))) { alert('Not a Picrew image maker!'); } else { (async () => { const zipEntries = []; let fileCount = 0; let thumbnailCount = 0; let mergedImageSize = 0; let xmlSize = 0;

    const setInt16 = (array, index, value) => array.setInt16(index, value, 1) | value;
    const setInt32 = (array, index, value) => array.setInt32(index, value, 1) | value;

    const calculateChecksum = buffer => {
        const checksumArray = new Int8Array(buffer);
        let checksum = -1;

        for (let i = 0; i < checksumArray.length; i++) {
            checksum = checksum >>> 8 ^ C[255 & (checksum ^ checksumArray[i])];
        }

        return ~checksum;
    };

    const createDataView = (length) => new DataView(new ArrayBuffer(length));

    const createProgressElement = () => {
        const progressElement = document.createElement('progress');
        progressElement.style.position = 'absolute';
        progressElement.style.top = 0;
        progressElement.style.width = '100%';
        document.body.appendChild(progressElement);
        return progressElement;
    };

    const encoder = new TextEncoder();
    const textDecoder = new TextDecoder();

    const addFileToZip = (filename, data) => {
        const header = createDataView(26);
        const dataView = new DataView(data);

        setInt8(header, 0, 10);
        setInt32(header, 10, calculateChecksum(data));
        setInt32(header, 14, setInt32(header, 18, data.byteLength));
        setInt16(header, 22, encoder.encode(filename).length);

        zipEntries.push('PK\x03\x04', header, encoder.encode(filename), data);
        fileCount++;
    };

    const fetchAndAddFileToZip = async (filename, canvas) => {
        const dataURL = canvas.toDataURL();
        const imageData = await fetch(dataURL).then(response => response.arrayBuffer());
        addFileToZip(filename, imageData);
    };

    const createThumbnail = (canvas, width, height) => {
        const thumbnailCanvas = document.createElement('canvas');
        thumbnailCanvas.width = width;
        thumbnailCanvas.height = height;
        thumbnailCanvas.getContext('2d').drawImage(canvas, 0, 0, width, height);
        return thumbnailCanvas;
    };

    const createImageDocument = () => {
        const imageDocument = document.implementation.createDocument(null, 'image');
        imageDocument.documentElement.setAttribute('version', '0.0.6');
        imageDocument.documentElement.appendChild(imageDocument.createElement('stack'));
        return imageDocument;
    };

    const addPartToStack = (stackElement, part, index) => {
        const partElement = document.createElement('stack');
        stackElement.appendChild(partElement);
        partElement.setAttribute('name', part.pNm);

        for (const item of part.items) {
            for (const overlay of N.config.cpList[part.cpId]) {
                if (N.commonImages[item.itmId] && N.commonImages[item.itmId][part.lyrList] && N.commonImages[item.itmId][part.lyrList][overlay.cId]) {
                    const layerElement = document.createElement('layer');
                    const partData = N.commonImages[item.itmId][part.lyrList][overlay.cId];
                    const imageUrl = partData.url;
                    const formattedPartName = part.pNm.replace(/\s+/g, '_');
                    const partNameLowerCase = formattedPartName.toLowerCase();
                    const imageName = `data/part${index}_${partNameLowerCase}class${index}/${item.pNm}_${overlay.pNm}.png`;

                    fetch(imageUrl).then(response => response.arrayBuffer()).then(imageData => addFileToZip(imageName, imageData));

                    if (N.imageMakerId === part.pId) {
                        layerElement.setAttribute('x', part.x + partData.xCnt);
                        layerElement.setAttribute('y', part.y + partData.yCnt);
                    } else {
                        layerElement.setAttribute('visibility', 'hidden');
                        layerElement.setAttribute('x', part.x);
                        layerElement.setAttribute('y', part.y);
                    }

                    layerElement.setAttribute('src', imageName);
                    partElement.appendChild(layerElement);
                    fileCount++;
                    thumbnailCount++;
                }
            }
        }
    };

    const imageMakerInfo = N.imageMakerInfo;
    const canvas = document.querySelector('canvas');
    const thumbnailCanvas = createThumbnail(canvas, N.config.w * 256 / Math.max(N.config.w, N.config.h), N.config.h * 256 / Math.max(N.config.w, N.config.h));
    const imageDocument = createImageDocument();
    const stackElement = imageDocument.querySelector('stack');

    const indexedDBResult = await new Promise(resolve => {
        window.indexedDB.open('picrew').onsuccess = event => {
            event.target.result.transaction('image_maker_parts').objectStore('image_maker_parts').getAll(IDBKeyRange.bound([N.imageMakerId], [N.imageMakerId, ''])).onsuccess = event => resolve(event.target.result);
        };
    });

    await fetchAndAddFileToZip('mergedimage.png', canvas);
    await fetchAndAddFileToZip('Thumbnails/thumbnail.png', thumbnailCanvas);

    imageDocument.documentElement.setAttribute('w', N.config.w);
    imageDocument.documentElement.setAttribute('h', N.config.h);

    const progressBar = createProgressElement();
    progressBar.max = 0;

    for (const part of Object.values(N.commonImages)) {
        for (const layer of Object.values(part)) {
            progressBar.max += Object.keys(layer).length;
        }
    }

    progressBar.value = 0;

    for (const [layerId, sortOrder] of Object.entries(N.config.lyrList).sort((a, b) => b[1] - a[1])) {
        const part = N.config.pList.find(p => p.lyrs.includes(+layerId));

        if (!part) {
            continue;
        }

        addPartToStack(stackElement, part, thumbnailCount);

        progressBar.value++;
    }

    addFileToZip('stack.xml', encoder.encode(new XMLSerializer().serializeToString(imageDocument)));

    setInt32(A, 4, setInt32(A, 6, fileCount));
    setInt32(A, 8, thumbnailCount);
    setInt32(A, 12, mergedImageSize);

    const zipBlob = new Blob(zipEntries.concat('PK\x05\x06', A), { type: 'application/zip' });
    const zipUrl = URL.createObjectURL(zipBlob);
    const downloadLink = document.createElement('a');
    downloadLink.href = zipUrl;
    downloadLink.download = N.imageMakerId + '.ora';
    downloadLink.click();
    URL.revokeObjectURL(zipUrl);
    document.body.removeChild(progressBar);
})().catch(alert);

}

mincerafter42 commented 10 months ago

What modification were you trying to make? It looks to me like you've sent an expanded version of the minified bookmarklet with some but not all instances of various variable names changed?

Greek-Cp commented 10 months ago

yes, i'm modified the little bit code for my app flutter , so i create new picrew app using flutter, so i'm need download assets from picrew this for personal maker. with format app, can you fix the code ?:'

Greek-Cp commented 10 months ago

can you fix this? because I made a small change to the code to download assets from Picrew, I want everyone to be able to use it easily in Android applications using Flutter.

mincerafter42 commented 10 months ago

What is your intended change to the code? I can see you've restructured it and possibly erroneously removed some parts, but I can't tell what the behavioural change you intended is.

Greek-Cp commented 10 months ago

I changed it to have a structure like this, because my Flutter application can load the image structure if it has a structure like that.

<stack name="パーツ">
<layer src="data/part0_class0/asset_0.png" x="0" y="0"/>
</stack>
<stack name="あほ毛">
<layer src="data/part1_class1/asset_0.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part1_class1/asset_1.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part1_class1/asset_2.png" visibility="hidden" x="0" y="0"/>

<stack name="前髪">
<layer src="data/part2_class2/asset_0.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_1.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_2.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_3.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_4.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_5.png" visibility="hidden" x="0" y="0"/>
<layer src="data/part2_class2/asset_6.png" visibility="hidden" x="0" y="0"/>

the structure i made. image the strucutre inside folder part{index}_class{index} image

the stack.xml image

mincerafter42 commented 10 months ago

If you want to just change the filenames I suggest you start with line 114 of the source code, not with restructuring the minified code.

Also note that if you intend to use the OpenRaster format, it would be much better to use stack.xml's contents to determine the image locations rather than relying on a predefined file structure. And also that the mimetype file is a required part of OpenRaster.

Greek-Cp commented 10 months ago

can you make it :' I'm sorry I don't have an understanding of JavaScript:' I have weak logic and mathematics :" I hope you can help me thank you and making different branch :"

mincerafter42 commented 10 months ago

it looks like you'd want to change the line to something like const imageDir=`data/part${layer[1]-1}_class${layer[1]-1}/asset_${part.items.indexOf(item)*state.config.cpList[part.cpId].length+state.config.cpList[part.cpId].indexOf(colour)}.png`;