From 7893fec24273571ba0d7f3cf9950b66641bf210c Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 2 Oct 2021 13:36:55 -0500 Subject: Refactor bridges --- bridges/instagram.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bridges/instagram.js (limited to 'bridges/instagram.js') diff --git a/bridges/instagram.js b/bridges/instagram.js new file mode 100644 index 0000000..0ced06a --- /dev/null +++ b/bridges/instagram.js @@ -0,0 +1,10 @@ +async function get_insta() { + let url = window.location.href; + let insta_url = url + "?__a=1" + let res = await fetch(insta_url); + let json = await res.json(); + let uid = json.graphql.user.id + let feed_url = `${base_url}/?action=display&bridge=Instagram&context=Username&u=${uid}&media_type=all&format=`; + return get_all_types(feed_url) +} + -- cgit v1.2.3