I posted a comment here about six hours ago, but it got flagged as spam, probably because of all the links it contained. No one has reviewed it yet, so I’ll post it again, this time without the links. Thanks for bearing with me.
Hello,
I’ve been trying to figure something out for the past week or so, looking on the documentation/wiki and posting on a couple of sites (and not finding an answer). I found a link to this “support” area in the GitHub file, so I thought that I’d ask for help over here. Sorry if I’m doing something wrong!
So here is my problem: on some sites, I want to disable the general “feed” of the site, so that I don’t need to look at their suggested posts or videos or whatever. This works fine on some sites.
Take YouTube for example. I don’t want to see their video suggestions ever, whether I’m logged in or not. I just want to use YouTube to watch videos that I want to watch, not carelessly browse around and waste time. That’s why I went on the site and used the element picker and found out that if you hide ###feed
, it blocks the feed. It doesn’t interfere with other parts of the site, which is good.
However, it doesn’t work as well on other sites. Let’s look at two examples over here:
YouTube Gaming – URL redacted, should be easy to find if you need to. Please assume YG
is the site.
Now I want to block the feed similar to blocking the feed on YouTube
, but this has some adverse effects. What’s the problem? It essentially blocks content from other subdomains.
So I want to block that streaming video header at the top, as well as the trending videos and whatnot. Basically all the videos that appear on the homepage. And then I realize that I want to hide the tabs at the top as well, because I don’t need them, either. Using the element inspector I play around and realize that if I block ###contents
, it blocks all of that crap. So I have a new rule:
YG###contents
However, now, when I search for something, nothing shows up, because ###contents
is being blocked on the subdomain, YG/results?search_query=game
, as well. Also, when I go to a user’s channel, it essentially hides everything except the header and picture of the user, so I can’t see any of the user’s videos. I think it would be better to block ###contents
only on the homepage, which is YG
, and nothing else. I haven’t found out how to do this, though.
I also tried individually blocking the streaming video header, trending videos, etc. instead of going all out with ###contents
using the element picker, but this has one unfortunate consequence: when I go to a person’s channel, it doesn’t show me any videos there. So that’s why I’m looking for something to block ###contents
just on the “domain” of YG
– as in only when that is showing in the URL bar. I hope that makes sense.
Reddit – Lets call the URL Reddit
Similar problem here, though slightly different. When I go to the site when I’m not logged in, it shows me the font page which I don’t want to see. When I am logged in, it shows me my front page which I am okay with seeing. So I tried blocking the font page when I’m not logged in, and I used this as a result:
Reddit###siteTable
The problem this time? When I’m signed in, I can’t see my own personal front page. It’s blocked as well! This is a bit more complicated, because the URL stays Reddit
and doesn’t change. So I don’t know if uBlock can create a filter that will only work when I’m not logged in (I guess I might be out of luck for this particular case though). In addition to hiding the front page completely, it also hides posts from other subreddits and the text of posts when you click on them (i.e. you can only see comments). So, in essence, it completely breaks the site. I don’t know if there is a good way to do this or whether I’ll just have to live with the fact that it is impossible to do so (which isn’t really that big or a problem, just more of an annoyance).
Thanks for reading this wall of text. Hopefully someone will know how to do something about this!
Edit: It seems like the comment was approved after all. Should I delete that comment? I’m not too sure… I feel like I should keep this one as it’s the “latest” one. Do advise me on how I should go about doing this. Thank you!