标签: brave

iOS:当设置默认浏览器为 Chrome/brave(除 safari 之外)时,通用链接不起作用

在我们的 iOS 中,当我们点击链接时,我们的应用程序的通用链接不会打开我们的应用程序。仅当 iPhone 中的默认浏览器设置为 Chrome 或 Brave(Safari 除外)时才会发生这种情况。

当默认浏览器是 safari 时,它可以完美运行。

顺便说一下,我们已经正确配置了 iOS 应用程序和 Web 服务器的所有设置。

请帮我解决这个问题。

当默认 iPhone 浏览器是 Chrome 或 Brave 时,预期行为将启动应用程序。

我们尝试了以下选项,但它们都不起作用 iOS 14 通用链接在 Safari 以外的默认浏览器上损坏

google-chrome mobile-safari ios ios-universal-links brave

13
推荐指数
0
解决办法
1667
查看次数

在 Brave 浏览器中禁用 CORS

最近我从 Safari 切换到 Brave Safari 有一个可怕的错误 - 当你打开开发工具时,你会从每个站点注销,并且我尝试在 CORS 禁用模式下运行它。

我尝试修改通常用于 Chrome 的命令,但每次尝试都不成功:

open /Applications/Google\ Chrome.app --args --user-data-dir="/var/tmp/Chrome dev session" --disable-web-security
Run Code Online (Sandbox Code Playgroud)

我的本地 Angular 应用程序正在连接到几个远程服务器,除非我禁用 CORS,否则所有请求都会被阻止 - 并且我无法在服务器上进行任何更改。

brave brave-browser

12
推荐指数
1
解决办法
2万
查看次数

如何将VSCode调试器附加到Brave浏览器?

Chrome浏览器中打开Web应用程序时,可以将VSCode调试器附加到该应用程序。

调试器配置为:

{
    "name": "Attach to Chrome",
    "type": "chrome",
    "request": "attach",
    "port": 9222,
    "url": "http://localhost:4200/*",
    "webRoot": "${workspaceFolder}",
},
Run Code Online (Sandbox Code Playgroud)

但是,当我在Brave浏览器中打开Web应用程序时,无法附加VSCode调试器。

Web应用程序是Angularhttp://localhost:4200/users

我在跑:

Chrome Version 70.0.3538.102 (Build officiel) (64 bits)
Brave Version 0.56.12 Chromium: 70.0.3538.77 (Build officiel) (64 bits)
VSCode Version 1.23.0
Run Code Online (Sandbox Code Playgroud)

在一个Lubuntu 16.04盒子上。

Brave浏览器还没有准备好进行调试?还是我应该删除一些端口限制?我已经将此Web应用程序放下了。但是VSCode仍然没有依附。

google-chrome visual-studio-code brave vscode-debugger

9
推荐指数
4
解决办法
647
查看次数

如何在Brave Web浏览器上运行Selenium测试?

我正在尝试在Brave Web浏览器上运行一些Selenium测试。我可以使用ChromeDriver通过Selenium启动Brave Web浏览器。但是,没有其他办法,例如,我无法使Brave加载某个网页。

由于Brave基于Chromium,因此我认为这是可行的方法。是否有更合适的方法来支持Brave被Selenium驱动?

这是我使用的de代码:

    ChromeOptions options = new ChromeOptions().setBinary("/Applications/Brave.app/Contents/MacOS/brave");
    WebDriver driver = new ChromeDriver(options);
Run Code Online (Sandbox Code Playgroud)

selenium browser-automation selenium-chromedriver selenium-webdriver brave

8
推荐指数
2
解决办法
2148
查看次数

如何在 Brave 浏览器中允许我的本地网页访问 LocalStorage?

默认情况下,Brave 会阻止所有 3rd 方 cookie,这很好,但是,我想在使用 LocalStorage 的本地项目上工作,但出现以下错误。

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

我不想关闭 3rd 方 cookie 阻止,这确实解决了问题,但我宁愿将本地文件访问列入白名单(不允许白名单file://协议)。

是否有可能在不关闭全局“阻止所有 3rd 方 cookie”设置的情况下使其正常工作?

cookies local-storage brave brave-browser

8
推荐指数
1
解决办法
5356
查看次数

如何使用带有 python、selenium 和 chromedriver 的 Brave 网络浏览器?

我从 Google 的 Chrome 切换到Brave 网络浏览器,但很难让它像 Chrome 一样与 Brave 一起使用。Brave 是基于铬的,所以我猜它不应该那么难。我确保我的 Brave 和 Chromedriver 使用相同的版本,

~/some/path $ chromedriver --version
ChromeDriver 76.0.3809.126 (d80a294506b4c9d18015e755cee48f953ddc3f2f-refs/branch-heads/3809@{#1024})
Run Code Online (Sandbox Code Playgroud)

我的 chromedriver 也在/user/bin

~/path $ cd /usr/bin/
/usr/bin $ ls | grep chromedriver
chromedriver 
Run Code Online (Sandbox Code Playgroud)

要检查 Brave 版本,我得到: Version 0.68.132 Chromium: 76.0.3809.132 (Official Build) (64-bit)

然后我运行这段代码,

from selenium import webdriver

driver = webdriver.Chrome(executable_path='/usr/bin/brave-browser')
driver.get("http://www.python.org")
driver.close()
Run Code Online (Sandbox Code Playgroud)

这会打开一个 Brave 窗口,但不是获取驱动程序指向的页面,而是抛出异常,

Traceback (most recent call last):
  File "webscrap.py", line 3, in <module>
    driver = webdriver.Chrome(executable_path='/usr/bin/brave-browser')
  File "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line …
Run Code Online (Sandbox Code Playgroud)

python selenium selenium-chromedriver brave brave-browser

7
推荐指数
2
解决办法
8613
查看次数

为什么brave.Tracer没有自动装配?

我们有很多服务使用 Spring Boot 2.0.x 并且io.zipkin.brave.Tracer已经使用并且运行正常。Tracer 用于用 @Component 注解的类中,并且它有一个以 Tracer 作为参数的构造函数。这是一个示例片段:

@Component
public class CrmMessagePublisher {

    private static final Logger LOGGER = LoggerFactory.getLogger(CrmMessagePublisher.class);

    private static final String EVENT_NAME_HEADER = "service.eventName";

    private static final String EXCHANGE_EVENT = "service.event";

    private static String applicationName;

    private RabbitTemplate rabbitTemplate;

    @Autowired
    private Tracer tracer;

    @Autowired
    public CrmMessagePublisher(
            RabbitTemplate rabbitTemplate,
            @Value("${spring.application.name}") final String applicationName,
            Tracer tracer
    ) {
        this.rabbitTemplate = rabbitTemplate;
        CrmMessagePublisher.applicationName = applicationName;
        this.tracer = tracer;
    }
...
Run Code Online (Sandbox Code Playgroud)

现在我想写一个junit测试但我总是得到

Test ignored.

java.lang.IllegalStateException: Failed to load …
Run Code Online (Sandbox Code Playgroud)

zipkin spring-boot brave

7
推荐指数
1
解决办法
1万
查看次数

Brave浏览器如何关闭地址栏中的自动提示

当我输入网址时,Brave 会建议非常愚蠢的网站。示例:当我只输入“mu”时,它会建议“elmundo.es”。如果我输入“po”,它会建议“huffingtonpost.com”

我从未访问过这些网站,它不在我的书签中,我的历史记录已 100% 清除,并且有关“预测服务”的两个设置均已关闭。我已经重新启动了浏览器。

这个功能非常非常烦人。我可以安装一个扩展来删除此自动建议,还是我是唯一一个对此感到生气的人???:-)。除此之外,Brave 浏览器似乎是一个不错的选择。

提前致谢

乔纳斯M

browser autocomplete autosuggest brave

6
推荐指数
1
解决办法
5661
查看次数

对于 Brave 浏览器 Nighty 版本,跳过配置文件“main/binary-i386/Packages”的获取

我刚刚在我的计算机上安装了 Linux Mint 21 x86_64\nkernal 版本 -5.15.0-67-generic,但仍然不了解\xe2\x80\x99 的任何内容。我尝试安装brave-browser(夜间频道安装)。我在这个网站上安装了https://brave.com/linux/#nightly-channel-installation。我收到这个错误。

\n
\n

文本错误:跳过配置文件“main/binary-i386/Packages”的获取作为存储库“https://brave-browser-apt-nightly.s3.brave.com stable InRelease”不支持架构\'i386\'

\n
\n

Brave 浏览器错误不支持 i386 架构

\n

在此输入图像描述

\n

Brave Browser Nighty版本安装错误

\n

在此输入图像描述

\n

在此输入图像描述

\n

brave

6
推荐指数
1
解决办法
6281
查看次数

有适用于Brave浏览器的Selenium驱动程序吗?

我已经有使用Google Chrome的功能齐全的抓取工具。为了使其快速运行,我以编程方式配置了广告拦截器,跟踪器拦截器,图像拦截器,弹出式拦截器等(基本上是每种拦截器)。有许多行配置代码需要维护。

随之而来的是勇敢。

内置了我想要的所有阻止器-内置!它也基于Chromium构建-就像Chrome一样。因此,我可以将ChromeDriver与Brave结合使用。但这真的有用吗?

所以我尝试了-但失败了-以下异常:

System.InvalidOperationException occurred
  HResult=0x80131509
  Message=unknown error: no chrome binary at C:\SOMEPATH\Brave64\app-0.22.22\brave.exe
  (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.1.7601 SP1 x86_64)
  Source=WebDriver
  StackTrace:
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options)
   at FOO.GOO.Historical.Scrape.Session.CreateDriver[T]() in D:\FOO\FOO.GOO.Historical.Scrape\Session.cs:line 211
   at FOO.GOO.Historical.Scrape.TestFixtures.Pages.PageTest.SessionSetUp(Boolean login) in D:\FOO\FOO.GOO.Historical.Scrape\TestFixtures\Pages\PageTest.cs:line 23
   at FOO.GOO.Historical.Scrape.TestFixtures.ScraperTests.SetUp() in D:\FOO\FOO.GOO.Historical.Scrape\TestFixtures\ScraperTests.cs:line 21
Run Code Online (Sandbox Code Playgroud)

因此很明显,它不能直接替换。ChromeDriver表示它需要Chrome二进制文件,而不是勇敢的二进制文件。

有人可以解释一下是否有适合Brave的驱动程序?我已经为性能提升而垂涎三尺。

selenium brave

5
推荐指数
1
解决办法
1350
查看次数