Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to set up filters in about:home. #1601

Closed
khatharr opened this issue Apr 29, 2016 · 10 comments
Closed

Can't seem to set up filters in about:home. #1601

khatharr opened this issue Apr 29, 2016 · 10 comments
Labels

Comments

@khatharr
Copy link

I have a Stylish filter that removes the 'snippets' div from about:home. I've only ever used Stylish for blocking things that naive filters didn't catch, but now that I've learned to block elements with UO I've converted all of them, and this is the last one remaining.

This applies exclusively to Firefox's about:home page. There's no 'block element' option in the context menu on this page, and if I try to activate the picker nothing happens. I get that this may be due to some kind of security issue, but if possible I'd like to be able to use UO normally on this page.

I did try creating a custom filter, but it didn't work. I tried:

about:home###snippets < div

I'm using Firefox 45.0.2 with uBlock Origin 1.6.8.

@ghost
Copy link

ghost commented Apr 29, 2016

As a workaround: What about setting browser.aboutHomeSnippets.updateUrl to (an empty string) in about:config?

@khatharr
Copy link
Author

khatharr commented Apr 29, 2016

I think I tried that before but it didn't work for some reason. I'll check it out again.

Yeah, I already have it blank, and I deleted the folder that stores the snippets, but it gets restored when I re-open the browser.

@Piter432
Copy link

I think you should remove about-scheme from your whitelist in your uBO's settings and then try again.

@khatharr
Copy link
Author

I don't have that entry, but I just tried removing everything from the the whitelist temporarily and restarting, but it didn't work.

@gorhill
Copy link
Owner

gorhill commented Apr 30, 2016

uBO's content scripts are not injected into anything else than http/https web pages. The content scripts are needed for cosmetic filtering.

@khatharr
Copy link
Author

Is that the same as "no"?

@berrythesoftwarecodeprogrammar

well since he didn't close it, maybe he will do something about it... @IDKwhattoputhere's solution works fine for me though, I've never seen any 'snippets'. maybe consider changing your homepage to the actual search engine you use or make a file identical to about:home without the crap. maybe you can check the logger for the requests it makes for the snippets and block that in about-scheme or behind-the-scene (whichever one it uses to make the request)

@gorhill
Copy link
Owner

gorhill commented Apr 30, 2016

Not "no", rather "not sure" at this point. For the sake of code sanity, I need better arguments than "to replace Stylish": that is not the purpose of uBO.

@khatharr
Copy link
Author

I'm not really looking to replace Stylish categorically; I was just thinking that it would be nice to have only one plugin doing the "remove content cancer" job. From the user perspective it doesn't make any sense for uBO to not work on any page. I get that it's a different story from the implementation side, though I don't work with browser stuff much, so I don't know how complex it would be and therefore can't gauge whether it's worthwhile.

In any case, it's my request as a user, fwiw.

@onestepbeyond
Copy link

onestepbeyond commented May 1, 2016

@khatharr For that purpose, I use a simple userscript (usercontent.css, in the chrome subfolder):

/* hide snippet on the about:home page */
@-moz-document url(about:home) {
#snippetContainer {
    display: none !important;
    }
}

An ultralightweight 137 Bytes file which requires no addon...
That said, I'm aware that this does not really answer your question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants