MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / enlargePhoto

Function enlargePhoto

scripts/test.js:629–655  ·  view source on GitHub ↗
(photo_id, albumId)

Source from the content-addressed store, hash-verified

627 }
628
629 async function enlargePhoto(photo_id, albumId) {
630 let res = await fetchGraphQl({
631 fb_api_req_friendly_name: "CometPhotoRootContentQuery",
632 variables: {
633 isMediaset: true,
634 renderLocation: "permalink",
635 nodeID: photo_id,
636 mediasetToken: "a." + albumId,
637 scale: 2,
638 feedLocation: "COMET_MEDIA_VIEWER",
639 feedbackSource: 65,
640 focusCommentID: null,
641 glbFileURIHackToRenderAs3D_DO_NOT_USE: null,
642 privacySelectorRenderLocation: "COMET_MEDIA_VIEWER",
643 useDefaultActor: false,
644 useHScroll: false,
645 __relay_internal__pv__CometIsAdaptiveUFIEnabledrelayprovider: false,
646 __relay_internal__pv__CometUFIShareActionMigrationrelayprovider: false,
647 __relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider: false,
648 __relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider: false,
649 },
650 server_timestamps: true,
651 doc_id: "7575853042491661",
652 });
653 let first = JSON.parse(res.split("\n")[0]);
654 return first.data.currMedia.image.uri;
655 }
656
657 async function enlargePhotos(albumPhotos, albumId, progress) {
658 let result = [];

Callers 1

enlargePhotosFunction · 0.85

Calls 2

parseMethod · 0.80
fetchGraphQlFunction · 0.70

Tested by

no test coverage detected