the reason we need to disable CORS is because the youtube api doesn't allow cross origin requests, and we need to
Search for chrome in your start menu
Locate it's exe file
open a command prompt in the same directory as the exe file, and run this command "chrome.exe --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp"
1. Go to https://www.youtube.com/feed/channels
2. Open the console (F12)
3. Paste the code in the console
console.clear();
const channels = Array.from( document.querySelectorAll("div > #info-section > .channel-link"))
const channelUrls = channels.map(c => c.href);
console.log(channelUrls);
4. Press enter
5. Copy the array of urls
6. Paste the array of urls in the input
Now we need the access token, to get it, follow these steps:
2. Open the console (F12)
3. Inspect the network tab
4. Click on the "Execute" button
5. You be asked to login, login with account you want to subscribe with
6. Search for "https://content-youtube.googleapis.com/youtube/v3/subscriptions" in the network tab
7. Copy the access token from headers It's under "Authorization" header looks like this "Bearer {token}"
8. Paste the access token, that is {token} in the input