Skip to content

Instantly share code, notes, and snippets.

@sarahalf
sarahalf / instaFollowerFollowingCount
Created May 2, 2026 00:24
instaFollowerFollowingCount
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",