Shqyrtime për FilterTube
FilterTube nga Devansh Varshney
Shqyrtim nga alucioso
Vlerësuar me 3 yje nga 5 të mundshëm
nga alucioso, 5 orë më parëIt seems that this add-on, like all others, doesn't grab the Channel ID and the orange entries are soft blocks (Channel Name).
When I enter the Channel ID, the entries are gray.
Probably going to have to use Violent Monkey script to block by channel ID.
Update:
You don't need to parse the whole ytInitialData object or use the API. You can grab the ID directly from the page head using either of these reliable DOM selectors:
document.querySelector('link[rel="canonical"]').href.split('channel/')[1]
document.querySelector('meta[itemprop="identifier"]').content
Since YouTube is a Single Page Application, you just need to wrap these in a MutationObserver or a small setTimeout to ensure the elements have finished injecting before the script fires. It’s light and fast.
Failsafe version that tries both:
const channelId = document.querySelector('meta[itemprop="identifier"]')?.content ||
document.querySelector('link[rel="canonical"]')?.href?.split('channel/')[1];
When I enter the Channel ID, the entries are gray.
Probably going to have to use Violent Monkey script to block by channel ID.
Update:
You don't need to parse the whole ytInitialData object or use the API. You can grab the ID directly from the page head using either of these reliable DOM selectors:
document.querySelector('link[rel="canonical"]').href.split('channel/')[1]
document.querySelector('meta[itemprop="identifier"]').content
Since YouTube is a Single Page Application, you just need to wrap these in a MutationObserver or a small setTimeout to ensure the elements have finished injecting before the script fires. It’s light and fast.
Failsafe version that tries both:
const channelId = document.querySelector('meta[itemprop="identifier"]')?.content ||
document.querySelector('link[rel="canonical"]')?.href?.split('channel/')[1];
3 shqyrtime
- Vlerësuar me 5 yje nga 5 të mundshëmnga 18653345 përdoruesi Firefox-i, 19 ditë më parëso far it works perfect, better than the old blocktube in most aspects.
the only thing it's lacking at the moment is a way to import blocked sites from a list. i have a long list of channels and adding them one by one in each computer would be exhausting.
thanks for this indispensable extension.Përgjigje zhvilluesi
postuar më 19 ditë më parëThank you for the review.
I have just added the Import feature and it is approved you can now import the list and do let me know if the list is exported from other extension(which is supported) or is a text file?
I have tested mine but let me know if something problematic happens :) - Vlerësuar me 5 yje nga 5 të mundshëmnga Angean, një muaj më parëNot the hero we deserve but the hero we need, this extension is awesome and much smoother compared to other filters. The UI is really user friendly, keep up the good work!
Përgjigje zhvilluesi
postuar më një muaj më parëThank You for such kind words :)
I know it is still not fully functional specially on Watch Page but I have implemented it and only Playlist videos are having a minor bug.
Moreover, the Collab videos are filtering well You can see the Screenshot here - https://github.com/varshneydevansh/FilterTube/issues/26