uBlockOrigin / uMatrix-issues

This is the community-maintained issue tracker for uMatrix
https://github.com/gorhill/uMatrix
123 stars 17 forks source link

Support for local Assets / hosts files #169

Open Tharn opened 5 years ago

Tharn commented 5 years ago

Prerequisites

Description

I noticed that uMatrix allows to plug in custom URLs for hosts files, but it doesn't allow to plug in a local file. This could be very handy for those of us who curate our own lists and / or want to keep 'My Rules' easily readable, editable and separate from long hosts lists. Or even to organize lists into various categories.

Using a file://... URL will result in a broken link so I assume this is as of yet not supported.

Your environment

gwarser commented 5 years ago

Not supported in Firefox. Vote, subscribe to: https://bugzilla.mozilla.org/show_bug.cgi?id=1266960

Tharn commented 5 years ago

Just to clarify.. it doesn't have to go through the mechanism of a file:// URL. That was just an example of how I tried to use the URL system to load a file. uMatrix already does exporting and importing of config through a file.

Not only that, but browsing to the file in question via a tab and copypasting that file URL to use in uMatrix would be a very hacky and roundabout way of implementing this, anyway. Please consider re-opening this.

gorhill commented 5 years ago

You mean a UI equivalent to "My recipes", i.e. "My hosts"?

Tharn commented 5 years ago

I mean, for example, a button in the 'Assets' tab that reads 'import file' where you can select a file, which then creates a hosts list just like an URL does. That would be the easiest way to go about it I think.

M7919 commented 4 years ago

You mean a UI equivalent to "My recipes", i.e. "My hosts"?

That would be very nice feature addition for me. I will try to explain with my poor english. Ublock My rules sample no-csp-reports: * true

In my internet usage, frequently used to unbreak sites but not desirable for globally allow domains,mostly. I do not use any kind of social media and google services except youtube. So what to do with facebook, vk, twitter, instagram,google.com........ In ublock it is easy as copy names and paste to My Filters. No clutter in My Rules section. Only few global block and local unbreak rules. Easily manageable. My Filters look like below along with my cosmetic filters.

||irsdn.net^$important,all ||ggpht.com^$important,all ||google.mn^$important,all ||google.com^$important,all ||gstatic.com^$important,all ||doubleclick.net^$important,all ||fonts.googleapis.com^$important,all ||google-analytics.com^$important,all ||googlecommerce.com^$important,all ||googlesyndication.com^$important,all ||googletagservices.com^$important,all ||googletagmanager.com^$important,all ||mail.ru^$important,all ||vk.com^$important,all ||fbcdn.net^$important,all ||typekit.net^$important,all ||twimg.com^$important,all ||twitter.com^$important,all ||gravatar.com^$important,all ||facebook.net^$important,all ||facebook.com^$important,all ||instagram.com^$important,all ||fontawesome.com^$important,all ||cdninstagram.com^$important,all ||paypalobjects.com^$important,all

||polyfill.io^$important,all ||kxcdn.com^$important,all ||unpkg.com^$important,all ||zetrade.net^$important,all ||shortpixel.ai^$important,all ||altervista.org^$important,all ||5vul2bdy.store^$important,all ||firebaseio.com^$important,all

footer

.footer

.Footer

.site-footer

www.keka.io##.alt www.keka.io##.mas www.keka.io##.wrapper www.keka.io##.subcontent www.keka.io##.special.style2.wrapper www.keka.io##.scrolly.fa-chevron-down.icon.button

To get similar result in Umatrix I had to create repo in here upload host list and add back to Umatrix. When I need to add, remove, edit host entries its get very cumbersome. As for privacy freak like me it is very big minus to rely on online service. Of course i understand Im asking for somewhat duplicating feature. It is not urgent serious bug, just for convenience, usability thing. I have triple boot Hackintosh pc (Arch,10 LTSC, Catalina). Above samples are from my MacOS, ulmost not used OS, only for some testing stuff. My private daily OS is Linux. There my custom host entries are over 200 and expanding. Add it to My Rules it will be just a mess.

Maybe because Im using triple boot system or my Firefox privacy related customization Github always want me to reconfirmation. Free mail provider also. It is my fourth github account just to host simple text file in here. I did not want give my phone number or main mail address to some mail provider, correct answer to security question not helped. Lost access to 3 mail account. So I need this My Host tab. Thank you for your excellent 2 extensions. Without Im not dare to browse Internet. Seriously.

dodmi commented 4 years ago

Hi, I understand, that accessing local URLs in a browser context is problematic and therefore forbidden in most modern browsers as Firefox or Chromium, but I'd like to second the feature request.

Either by importing a own host or recipe file or by having a text box where I can specify the rules. I mean exactly as the text boxes for defining URLs, but directly containing the rules, not a link to the rules.

(using the Chrome version 1.4.0, there seems to be no "My recipes") image

gorhill commented 4 years ago

there seems to be no "My recipes"

Set contributorMode to true in the More pane in the dashboard.

dodmi commented 4 years ago

@gorhill: Cool, thank you :) Exactly the same would be nice for the hosts list.