aboutsummaryrefslogtreecommitdiff
path: root/content_scripts/bridges/instagram.js
blob: 0ced06a86a6e1561509e82cb54cd687c64617174 (plain)
1
2
3
4
5
6
7
8
9
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)
}