Skip to content

Instantly share code, notes, and snippets.

View amarilindra's full-sized avatar
💯
Focusing

Amar Ilindra amarilindra

💯
Focusing
View GitHub Profile
@amarilindra
amarilindra / invite_all_friends_page.js
Created July 30, 2022 06:17
Invite All Facebook Friends to Page
javascript:var geekdashboard = document.getElementsByClassName('uiButton _1sm');
for(var invite=0; invite<geekdashboard.length;invite++) {
geekdashboard[invite].click();
}
@amarilindra
amarilindra / invite_all_friends_event.js
Created July 30, 2022 06:22
Invite All Facebook Friends to Event
javascript:var geekdashboard = document.getElementsByClassName('_1pt_ _1pu0');
for(var invite=0; invite<geekdashboard.length;invite++) {
geekdashboard[invite].click();
}
@amarilindra
amarilindra / slugify_excel
Created October 21, 2022 11:51
Create Slug from Any String in Excel and Google Sheets Without LAMDA
=SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
@amarilindra
amarilindra / split_csv.bat
Created October 21, 2022 11:59
Split CSV Files
split -l 1000 -d FILE_NAME.csv file_
for i in $(find file_*); do mv $i "$i.csv"; done
@amarilindra
amarilindra / unsubscribe-all-youtube-channels.js
Created April 28, 2023 07:27
This is a JavaScript script for unsubscribing from YouTube channels. The script automatically clicks the unsubscribe button for each channel on the page and removes it from the DOM. The script uses the YouTube DOM elements to perform the unsubscribe action, so it should work regardless of changes to the YouTube website design. To use the script,…
// Get the total number of channels to unsubscribe
var channelCount = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;
// Call the timer function
unsubscribeTimer();
function unsubscribeTimer() {
// Return if there are no channels left to unsubscribe
if (channelCount === 0) {
return;
@amarilindra
amarilindra / youtube-channel-unsubscriber.js
Last active April 28, 2023 07:34
This code automates the process of unsubscribing from all YouTube channels. When the code runs, it will first fetch all the channels present in the user's YouTube account and then click the "Unsubscribe" button for each channel one by one. The code also logs the process and displays the number of channels unsubscribed out of the total number of …
(async function unsubscribeChannels() {
// Set delay time to wait for confirmation dialog
const UNSUBSCRIBE_DELAY_TIME = 2000
// Function to execute function after delay
const executeAfterDelay = (func, delay) => new Promise((resolve, reject) => {
setTimeout(() => {
func()
resolve()