339r

Javascript instagram story get mention JSON

Mar 25th, 2021 (edited)
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. //----
  3. (function () {window.location = 'https://www.instagram.com/graphql/query/?query_hash=303a4ae99711322310f25250d988f3b7&variables={"reel_ids":["*id*"],"tag_names":[],"location_ids":[],"highlight_reel_ids":[],"precomposed_overlay":false,"show_story_viewer_list":true,"story_viewer_fetch_count":50}'.replace("*id*",/profilePage_(\d+)/.exec(document.body.innerHTML)[1]);})();
  4.  
  5. //-----
  6. (function () {var mention = [];var story_data=document.body.innerText.trim();var id_story=prompt("Number of story:"); JSON.parse(story_data).data.reels_media[0].items[parseInt(id_story) - 1].tappable_objects.forEach(el=> {if(el.__typename == "GraphTappableMention"){mention.push(el.username);}}); if(mention.length !== 0){alert(mention)}else{alert("مافيش")};})();
Add Comment
Please, Sign In to add comment