Skip to content

Instantly share code, notes, and snippets.

View amblerkr's full-sized avatar
🎶
Music is Life

Ambler amblerkr

🎶
Music is Life
View GitHub Profile
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
이모지(Emoji)에 있는 플레이 버튼
▶️
특수문자(CP949)에 있는 화살표 문자
윈도우에서 ㅁ + 한자를 누르면 사용할 수 있다.
@amblerkr
amblerkr / unlike-delete-hide-facebook-posts.js
Created January 6, 2021 20:13 — forked from mi-lee/unlike-delete-hide-facebook-posts.js
Bulk delete, unlike, hide, or remove Facebook actions (in Activity Feed) by year.
// DISCLAIMER: I'VE ONLY RUN THIS SCRIPT ON MY OWN ACCOUNT ONLY. PROCEED/USE WITH RISK! I MADE THIS SCRIPT IN 20 MINUTES SO BE WARNED!
// On the other hand, I've deleted 50,000 comments in a matter of minutes so it's been pretty damn handy
// 1. Go to Activity feed, like facebook.com/<username>/allactivity
// 2. Navigate to specific section of FB, like "Likes and Reactions" or "Comments",
// like https://www.facebook.com/<username>/allactivity?privacy_source=activity_log&log_filter=cluster_<clusterid>
// 3. Navigate to year that you want to batch delete. You may need to scroll a little bit to let it load
// 4. Once you enter this there's no going back!!
@amblerkr
amblerkr / instagram_scrape.php
Created December 18, 2020 00:00 — forked from cosmocatalano/instagram_scrape.php
Quick-and-dirty Instagram web scrape, just in case you don't think you should have to make your users log in to deliver them public photos.
<?php
//returns a big old hunk of JSON from a non-private IG account page.
function scrape_insta($username) {
$insta_source = file_get_contents('http://instagram.com/'.$username);
$shards = explode('window._sharedData = ', $insta_source);
$insta_json = explode(';</script>', $shards[1]);
$insta_array = json_decode($insta_json[0], TRUE);
return $insta_array;
}
@amblerkr
amblerkr / instagram_count_to_googe_sheet.js
Created December 17, 2020 23:29 — forked from nickboyce/instagram_count_to_googe_sheet.js
Track your Instagram followers over time with Google Sheets Scripts
// Thank you to @juliendev for his script (updated here with minor cosmetic changes)
// https://gist.github.com/JulienDev/df5a3b66e899c224fa1b2dc90acfa2ae
// Your sheet name in the document
var sheetName = "Sheet1";
// Your instagram user id
var user_id = ""; //find your id here : https://codeofaninja.com/tools/find-instagram-user-id
var instagram_base_url = "https://www.instagram.com/graphql/query/";
var following = "?query_hash=58712303d941c6855d4e888c5f0cd22f&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D"
clearInterval(scroll);
https://www.instagram.com/web/search/topsearch/?query=ID
https://www.instagram.com/ID/?__a=1
https://codeofaninja.com/tools/find-instagram-user-id
@amblerkr
amblerkr / instalike.js
Created December 16, 2020 05:44 — forked from jadeallencook/instalike.js
Script to auto like posts on Instagram.
let likes = 0;
setInterval(() => {
const heart = document.querySelector('svg[aria-label="Like"]').parentNode;
const arrow = document.querySelector('a.coreSpriteRightPaginationArrow');
if (heart) {
heart.click()
likes++;
console.log(`You've liked ${likes} post(s)`);
}
arrow.click();
@amblerkr
amblerkr / like-post-instagram.js
Created December 16, 2020 04:53 — forked from chaodonghu/like-post-instagram.js
Google Chrome script that allows user to mass like instagram posts, automatically presses "next" and likes post.
// RUN WITH GOOGLE CHROME
// 1. OPEN INSTAGRAM
// 2. SEARCH FOR A HASHTAG
// 3. CLICK ON PHOTO TO REVEAL LIKE BUTTON AS WELL AS ARROWS FOR NAVIGATING BETWEEN PHOTOS
// 4. OPEN DEVELOPER TOOLS BY RIGHT CLICKING ON PAGE AND CLICKING "INSPECT"
// 5. COPY FOLLOWING CODE AND PASTE IN DEVELOPER TOOLS CONSOLE AND RUN
// 6. SCRIPT WILL NOT RUN IF TAB IS NAVIGATED AWAY FROM, MINIMIZED OR UNFOCUSED
// IT IS RECOMMENDED TO OPEN A NEW CHROME WINDOW OR PUSH TAB TO THE SIDE AND LET SCRIPT RUN IN BACKGROUND
// SCRIPT WILL CLICK ON "LIKE" BUTTON AND THEN NAVIGATE TO THE FOLLOWING POST
@amblerkr
amblerkr / unfollow-everyone-instagram.js
Created December 16, 2020 04:53 — forked from chaodonghu/unfollow-everyone-instagram.js
Google Chrome script that allows user to mass unfollow instagram users on user's profile
// RUN WITH GOOGLE CHROME
// 1. OPEN INSTAGRAM
// 2. CLICK ON "FOLLOWING" ON YOUR INSTAGRAM PROFILE
// 3. OPEN DEVELOPER TOOLS BY RIGHT CLICKING ON PAGE AND CLICKING "INSPECT"
// 4. COPY FOLLOWING CODE AND PASTE IN DEVELOPER TOOLS CONSOLE AND RUN
// 5. SCRIPT WILL NOT RUN IF TAB IS NAVIGATED AWAY FROM, MINIMIZED OR UNFOCUSED
// IT IS RECOMMENDED TO OPEN A NEW CHROME WINDOW OR PUSH TAB TO THE SIDE AND LET SCRIPT RUN IN BACKGROUND
// SCRIPT WILL CLICK ON "FOLLOWING" BUTTON AND THEN CLICK "UNFOLLOW" WHEN ASKED TO CONFIRM THE ACTION
// AND FINALLY WILL SCROLL THE NEXT "FOLLOWING" BUTTON INTO VIEW