aboutsummaryrefslogtreecommitdiff
path: root/content_scripts/bridges/instagram.js
blob: 18988b9e3d6956299e794e7f00d75a799b06eb98 (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)
}
register(["instagram"], get_insta)