Skip to content

Instantly share code, notes, and snippets.

@azurenekowo
Last active October 27, 2023 15:13
Show Gist options
  • Save azurenekowo/12a4c1628b31a262cd4358e186f5f556 to your computer and use it in GitHub Desktop.
Save azurenekowo/12a4c1628b31a262cd4358e186f5f556 to your computer and use it in GitHub Desktop.
// Rác truyền thông (1)
// @vtv24
UCabsTV34JwALXKGMqHpvUiA
// @ZLifevtvdigital
UCevx3UR91JjIpjD6eYW_2MA
// @VTV4go
UCQ4JPrrur8XOuxNugXmc39g
// @vtvthethaoofficial
UCtT8KtT0UMq3ypR_WM5wnjg
// @VTVCANTHOKETNOIMIENTAY
UCFttW4ZMW3mwoIri9JMFg_A
// @VTV7tv
UC5r0xuk4DsjsYiCq8H7AlDg
// @VTV8TINNONGMIENTRUNG
UCKSzIR-Eb4gol3Zj0kAjHNw
// @VTV9Official
UCiV5RHk7iUTwnaxDuoSIeBw
// @vtvthoitietofficial
UCorwNWKVwJ9VM7VYuACq3bA
// @VTVGiaiTriOfficial
UCuJ5k3GndbHnXLYyiIR6Z8Q
// @vtvshows
UCCZZuYT8pZED_3bNasz7RdA
// @vtvmoney
UCslJCEjLRh61hFZYvDOjl_Q
// @vtvlife
UCfU6Dd43n18xQvEUQL_CdhA
// Rác truyền thông (2)
// @Theanh28trending
UCRy5q_PAjMyEhT8e1a0QjAA
// @Theanh28vn
UCOlrILECzfqGY58-KB0avew
// @theanh28music
UC0RDICIfc8elqvN3Z3YRMzw
// @28channelvn
UCoUYHR3cQDzp_VuK-k7hvOA
// @beat_now
UCKSITbCnHEhqFMwVlB1XKaw
// @BEATVNNETWORK
UCtiwquxN_7DpOIr8OdOh2NQ
// Rác mạng
// @DongMauViet
UCpXhSnIKT-oxLAU4B-76GRg
// @DongMauViet-XaHoi
UC9nFLb8RuQrP5vXFAcdNcOQ
// @DongMauViet-LichSu
UCFtaKMCkA4gAHzpy-8o-LcQ
// Rác mạng, ở mức độ... rác hơn!
// @MixiGaming89
UCA_23dkEYToAc37hjSsCnXA
// @TunaGamingvn
UCq6Fji5mOmUxVT16zKEnvSg
// @monsieurtunastream8305
UCYwuQHp_3lXUPUiEfztorxQ
// @Dinosakura35
UCwUDyWWIabSvE6VBpvTCSMw
// @dinosakurashorts
UCOntyx_EK4u58_VWajdfvyg
// @lamthithanhngank3
UCLuuKqk2yCeS4etqdfQAgWg
// @ACNguyen
UCgd_np4EN8Yqs0AailHMCYQ
@Scarlaid
Copy link

Scarlaid commented Oct 27, 2023

UCm6HefGyhKWdN5V6QTII_Ug :)

@azurenekowo
Copy link
Author

https://www.youtube.com/@neyako, no idea how to get the actual url :)

@Scarlaid I think you can obtain it with YouTube's API(?). But, doing so requires an API key.
For my and your convenience, create a bookmarklet and paste the code below:

javascript:const channelIDrel=document.querySelector('link[rel="canonical"][href^="https://www.youtube.com/channel/"]');if(!channelIDrel){ alert("Couldn't find it, try again maybe?")} else {const channelID=channelIDrel.href.replace('https://www.youtube.com/channel/', '');alert(`Channel ID: ${channelID}\n \nCopied to clipboard.`);navigator.clipboard.writeText(channelID)}

image

Clicking on it will automatically find the ID string and copy it to your clipboard.

image

@Scarlaid
Copy link

Scarlaid commented Oct 27, 2023

thank you, edited the previous comment 👍

@4pii4
Copy link

4pii4 commented Oct 27, 2023

you can replace the first category with this:

(video, objectType) => {
  if (video.channelName.match("VTV"))
    return true;
  
  return false;
}

(enable advanced blocking and put the above code in)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment