get_metadata

Userscript

diffgram.get_metadata()

Returns

Object of metadata available on the instance.
Keys include

width
height
created_time
id

Image

original_filename
url_signed
url_signed_thumb

Video

filename
file_signed_url
frame_count
frame_rate
offset_in_seconds
parent_video_split_duration
preview_image_url_thumb

Example

let metadata = diffgram.get_metadata()
console.log(metadata.height, metadata.width)
717717