Skip to content

Instantly share code, notes, and snippets.

View krishoang222's full-sized avatar
🌐
Translating JS (57.98%) to TS (5.81%)

krishoang krishoang222

🌐
Translating JS (57.98%) to TS (5.81%)
View GitHub Profile
@krishoang222
krishoang222 / gist:e3fd751a64e41993209c146ebe807d93
Last active January 19, 2024 06:43
To scrape data (email, contacts, channel id) from Youtube to Airtable
javascript: (function () {
function simulateClick(selector) {
var element = document.querySelector(selector);
if (element) {
element.click();
}
}
simulateClick('#channel-tagline ytd-channel-tagline-renderer a');
const scrapeData = () => {
@krishoang222
krishoang222 / gist:a7961bcdb51bb28c6655069b44b892f0
Last active October 9, 2024 08:13
Spotify - Batch remove songs from Your Episodes list
// Function to remove episodes from the Spotify player
async function removeEpisodes() {
for (let i = 0; i < 100; i++) {
console.log(`Iteration ${i + 1}`);
// Select the first "More" button found on the page each time
const moreButton = document.querySelector('button[data-testid="more-button"]');
if (moreButton) {
// Click the "More" button