Show HN: Feed Remover
31–40 of 54 posts
Re: Show HN: Feed Remover
#32I use uBlock Origin to block GitHub's feed (I find it surprisingly distracting, and often right when I need to remain focused).
Re: Show HN: Feed Remover
#33Earlier quoted context omitted.
Added a quick domain check to avoid the issue that you've mentioned :)
I believe you could use a sub tree mutation observer instead of polling.
Re: Show HN: Feed Remover
#34Earlier quoted context omitted.
There isn't really a special protection if you install a extension in developer mode. More the opposite because you have to totally trust the source. Web stores search for certain malware patterns and get at leat some.
You're not wrong, but in this case the total source code is like 30 lines long so it's not hard to verify what it's doing yourself
You gain no security from an unpacked extension.
Re: Show HN: Feed Remover
#35Cool! Just curious, why do you query 10 times per second for a feed? This seems kind of excessive and maybe a bit bad for battery life, especially since this could be running in several tabs at once.
This is just the straightforward idea of waiting for some element to appear on the website. But once the element is found, this thing stops. It won't stop for YouTube if you are on Facebook though but it's just a first implementation and it could actually be very easy to recognize the site. Thanks for the helpful suggestion!
I tried polling, but it was against the Chrome extension guidelines at the time, so I used a "mutationObserver" on page load and then a "scrollListener". I don't remember if I ever tried an "intersectionObserver" but that might be worth looking at.
https://github.com/rendall/twitter-like-hider/blob/master/co...
Re: Show HN: Feed Remover
#36Re: Show HN: Feed Remover
#37Re: Show HN: Feed Remover
#38Re: Show HN: Feed Remover
#39YouTube has a setting to turn this off already.