@snacks @Takom relevant snippet to run on a channels home page to get the rss feed :
for (var arrScripts = document.getElementsByTagName('script'), i = 0; i < arrScripts.length; i++) {
if (arrScripts[i].textContent.indexOf('externalId') != -1) {
var channelId = arrScripts[i].textContent.match(/\"externalId\"\s*\:\s*\"(.*?)\"/)[1];
var channelRss = 'https://www.youtube.com/feeds/videos.xml?channel_id=' + channelId;
var channelTitle = document.title.match(/\(?\d*\)?\s?(.*?)\s\-\sYouTube/)[1];
alert('The rss feed of the channel \'' + channelTitle + '\' is:\n' + channelRss);
break;
}
}
@twinspin6 @Takom @snacks i really do not . i can guess what it does because it seems like its a kinda normal regex ? but regex and js are things i try to touch as little as possible ngl
@twinspin6 @Takom @snacks i think we should brutally dismember brendan eich
@twinspin6 @Takom @snacks @eris imean not wrong . other languages have reasons for letting you do things , in js its “anything goes” so like . cursed by default