Skip to content

Instantly share code, notes, and snippets.

View iamsyahroni's full-sized avatar
🏠
Working from home

Muhamad Syahroni iamsyahroni

🏠
Working from home
View GitHub Profile
@iamsyahroni
iamsyahroni / instagram-follower-following.js
Created February 5, 2024 06:40 — forked from abir-taheer/instagram-follower-following.js
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
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",
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active June 1, 2024 05:03
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
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",
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active June 2, 2024 10:17
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }