This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
function simulateClick(selector) { | |
var element = document.querySelector(selector); | |
if (element) { | |
element.click(); | |
} | |
} | |
simulateClick('#channel-tagline ytd-channel-tagline-renderer a'); | |
const scrapeData = () => { |