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

Ability to toggle shields (up/down) via keyboard shortcut #8763

Closed
bsclifton opened this issue Mar 19, 2020 · 16 comments
Closed

Ability to toggle shields (up/down) via keyboard shortcut #8763

bsclifton opened this issue Mar 19, 2020 · 16 comments
Assignees
Labels
design A design change, especially one which needs input from the design team feature/keyboard-shortcuts feature/shields The overall Shields feature in Brave. feature-request good first issue priority/P4 Planned work. We expect to get to it "soon".

Comments

@bsclifton
Copy link
Member

Description

(Requested via email)
Users should be able to use a keyboard shortcut to toggle the status of shields

@rebron rebron added priority/P4 Planned work. We expect to get to it "soon". design A design change, especially one which needs input from the design team labels Mar 20, 2020
@rebron
Copy link
Collaborator

rebron commented Mar 20, 2020

cc: @karenkliu help on suggestions for keyboard shortcut for shields toggle.

@karenkliu
Copy link

how about:

  • on Mac - CMD+SHIFT+S
  • on Windows - CONTROL+SHIFT+S
  • on Linux - need help here; I have no experience with Linux 😅

@rebron rebron added this to P4 backlog in Front End Mar 23, 2020
@iamzubin
Copy link

For Linux I guess CONTROL+SHIFT+S should be fine.

@0xedward
Copy link

0xedward commented May 25, 2020

Hey, I would like to give this a go!

@bsclifton - I would like your thoughts on if I'm looking at the right files here (0xedward/brave-core@b30878f)

@bsclifton
Copy link
Member Author

@0xedward sorry for not following up on this - there are a large number of notifications and sometimes things get lost ☹️

For this, we'd want something in in the hamburger menu. The Show Bookmarks Manager would be a good example to look at for implementation; Ctrl + Shift + B. There may be a complexity in catching the event in C++ and then sending a message (picked up in JavaScript) to disable shields

@0xedward
Copy link

No problem, @bsclifton!

Thanks for the pointer! I'll continue working on it when I get the chance 🙂

@ExplorerAadi
Copy link

Hi,
If no one is working on this issue, can I pick it ?

@0xedward
Copy link

0xedward commented Oct 2, 2020

I haven't gotten around to this yet, so feel free to take it over @aadi-27

@ExplorerAadi
Copy link

Can someone help me with this ? I ran "npm run init" and it took around 3-4 hrs, used up 30+ gb of my data and still gave this error at the end. Now everytime I am running "npm run init", it throws this error.

errror part 1
errror part 2

@bsclifton
Copy link
Member Author

@dwarburt
Copy link

dwarburt commented Oct 27, 2020

I had the same problem on Linux today and I had to edit file brave-browser/src/brave/build/rustup/0.1.4/registry/src/github.com-1ecc6299db9ec823/semver-parser-0.10.1/src/generated.rs to remove the line #![rustfmt::skip] (on line 4, just delete the whole line) and then it built correctly. steveklabnik/semver-parser#52

@xanoni
Copy link

xanoni commented Apr 22, 2021

Hey friends (@aadi-27, @dwarbut, @rebron, @karenkliu, @srirambv, @bsclifton, and everyone whom I forgot). I strongly support this feature. However, I would suggest that Brave also adds ways to change the granular shield settings via shortcuts.

Currently, people who use the most aggressive settings as their default (no cookies, full anti-fingerprint, aggressive tracker blocking, etc.) and then relax things on a site-by-site basis have a horrible user experience. This strongly (but unnecessarily) discourages use of restrictive defaults, which can't be in the interest of the Brave project.

E.g., we need a shortcut that switches cookies from "all blocked" to "only cross-site blocked".

If this would mean too many shortcuts, there should be some other UI mechanism to make it easier to change the defaults. E.g., after pressing a certain shortcut, a popup appears in the middle of the browser window where people can quickly adjust shield settings.

@asubedy
Copy link

asubedy commented Aug 24, 2021

Hey @bsclifton, I see no PRs for this issue, Can you assign it to me? I was thinking maybe first let us implement the toggle shields shortcut first, then later work what @xanoni suggested. I would love your advice here.
Also, I was reading the Linux development environment, and there on system requirements it said a minimum of 100GB free space required. Is this a must-have requirement?

Thank you

@bsclifton
Copy link
Member Author

@asubedy sure thing! You're assigned

For a complete compile, the 100GB is recommended. The Chromium source (and accompanying git history) are fairly large, and then when compile the object files, etc take up a decent chunk of space too

@xanoni
Copy link

xanoni commented Aug 25, 2021

For a complete compile, the 100GB is recommended. The Chromium source (and accompanying git history) are fairly large, and then when compile the object files, etc take up a decent chunk of space too

Curious, on something similar to a MacBook Pro, how long does the first build take and how long do subsequent builds take (with let's say just a few line changes)?

I found wildly varying estimates on the WWW, from <1 hour (really?) to more than a day (sucks). Thank you.

@fallaciousreasoning
Copy link
Collaborator

I'm closing this because as of brave/brave-core#18526 if you enable brave://flags/#brave-commands you can add your own shortcut for this at brave://settings/system/shortcuts (search for shields).

Right now, I don't think we're going to add a default shortcut for this.

cc @rebron

@rebron rebron removed this from P4 backlog in Front End Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design A design change, especially one which needs input from the design team feature/keyboard-shortcuts feature/shields The overall Shields feature in Brave. feature-request good first issue priority/P4 Planned work. We expect to get to it "soon".
Projects
None yet
Development

No branches or pull requests

10 participants