Giter VIP home page Giter VIP logo

Comments (12)

emerick avatar emerick commented on May 21, 2024 1

@srirambv To enable Regional Ad Block, you need to set Brave's language to non-English using chrome://settings/languages. For instance, when I set my language to French, I see the following in chrome://adblock

Total Ads Blocked: 119
Regional Ad Block: Enabled
FRA: EasyList Liste FR

from brave-browser.

emerick avatar emerick commented on May 21, 2024 1

Yes, it looks like Windows is the special case where regional ad block can be fully controlled via the browser. On Mac and Linux, it relies on system level settings.

from brave-browser.

emerick avatar emerick commented on May 21, 2024

Merged here:
brave/brave-core@2242c6c

from brave-browser.

srirambv avatar srirambv commented on May 21, 2024

chrome://adblock shows regional ad block disabled.
image

@bbondy expected until the adblock UI is ready?

from brave-browser.

bbondy avatar bbondy commented on May 21, 2024

That's all that's expected for now, thx for checking

from brave-browser.

btlechowski avatar btlechowski commented on May 21, 2024

Verification passed on

Brave 0.55.5 Chromium: 70.0.3538.16 (Official Build) dev (64-bit)
Revision 16ed95b41bb05e565b11fb66ac33c660b721f778-refs/branch-heads/3538@{#306}
OS Windows 7

from brave-browser.

srirambv avatar srirambv commented on May 21, 2024

@emerick this doesn't work on Linux. It doesn't show an option to Set what language is used to display. Having only French as the browser language it still shows as disabled. I'll add a new issue specific to Linux.

from brave-browser.

emerick avatar emerick commented on May 21, 2024

@srirambv It seems that on Linux, this is controlled via the LANGUAGE environment variable (see https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/D6Eoeh0G9Y4 for the gory details).

When launching on Linux like this, I saw the expected settings in chrome://adblock:

LANGUAGE=fr_FR ./brave

from brave-browser.

bsclifton avatar bsclifton commented on May 21, 2024

@emerick @bbondy I recently did country detection for Muon and noticed that the code you used @emerick doesn't always return country. For example, if you're in Columbia, I think it returns es-419 (Spanish spoken in Latin America / Caribbean)

Should regional adblocking be using language or country? Some locales returned (like fr-FR) DO specify the country, so locale may be specific enough in most cases

from brave-browser.

bbondy avatar bbondy commented on May 21, 2024

I believe in a followup I changed it so that if the full string is not found, it uses just the smaller part without the dash.

from brave-browser.

LaurenWags avatar LaurenWags commented on May 21, 2024

Verified that changing setting noted here #41 (comment) does not work for macOS. However, if I change that setting, my region, and my language as per #1238 (comment) then I can see that Regional Adblock is enabled.

Verified with

Brave 0.55.10 Chromium: 70.0.3538.22 (Official Build) beta(64-bit)
Revision ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364-refs/branch-heads/3538@{#468}
OS Mac OS X

from brave-browser.

srirambv avatar srirambv commented on May 21, 2024

Verification Passed on

Brave 0.55.11 Chromium: 70.0.3538.35 (Official Build) beta (64-bit)
Revision 28dcb499844fa40c28d5f62e337876cb936f79f5-refs/branch-heads/3538@{#678}
OS Linux

image

from brave-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.