-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Feature Request] Allow admins to hide power button to prevent its use #2940
Comments
? |
We are using the JSON file in Google Workspace Admin Console to set some adminSettings as well as the disabledPopupPanelParts. Here is a snippet of the current JSON: |
I don't understand the issue being reported. When I add the following as a policy: {
"3rdparty": {
"extensions": {
"cjpalhdlnbpafiamejdnhcphjbkeiagm": {
"disabledPopupPanelParts": [
"basicTools",
"extraTools",
"overviewPane"
]
}
}
}
} I don't see anything unexpected in the popup panel: If I toggle the power button: |
Ok you want the reload button to not show up? |
If the power button area is hidden, this would cause issues if |
That makes sense. In my use case I wasn't looking at the extraTools and it's dependencies since I hid them. In order to get this to work without requiring extraTools be hidden, the option couldn't hide the entire div with ID "stickyTools" just like you mentioned. It could set the div with ID "switch" to "display: none", as well as possibly changing the CSS for the class "rulesetTools" from "flex-direction: column" to "flex-direction: row" to remove some of the negative space. However, that last change isn't a requirement as the column view still looks okay when the buttons are shown. You could also change the CSS for [id] under the class "rulesetTools" from "visibility: hidden" to "display: none" in order to completely remove the negative space. Though, I assume that change would require areas of the code to start using "display: none" and "display: inline-flex" instead of "visibility: hidden" and "visibility: visible" for those buttons. All that said, thank you for a great extension and for being responsive on the issue tracker. |
Dumb idea (and maybe someone already suggested this, sorry if that's the case), but what if the power button was present and correctly displayed if uBo was enabled/disabled, but could not be interacted with. I know that would be extra work for little benefit, though. |
You can try using https://github.com/gorhill/uBlock/wiki/Deploying-uBlock-Origin:-configuration#advancedsettings to set https://github.com/gorhill/uBlock/wiki/Advanced-settings#uistyles to |
Can probably be broken by opening popup in a new window and using inspect element. But most people won't know about that. |
Good idea. I am going to go with this, this free me from working on something I am not convinced is worth it. |
This affect dashboard too. |
@SaumayTyagi follow the links in my post above, or explain more your situation. |
like where to write this code(in registry)(pointer-events:none) this code .please can you tell detailed steps) |
we have to write here ? if yes how and what to write? |
If you have access to this computer, then just go to uBO advanced settings and copy-paste it there. |
thanks . done. thank you very much . |
but how to revert it |
This comment was marked as duplicate.
This comment was marked as duplicate.
Please just read the documentation carefully, we gave you the link:
|
Seven notifications in less than an hour for a question that was already answer here and in the documentation, locking the issue. |
@SaumayTyagi you will need to use developer tools to remove the pointer events style from body or just reinstall uBO. |
Prerequisites
I tried to reproduce the issue when...
Description
Would it be possible to add an option in the disabledPopupPanelParts settings pushed by Chrome Management to disable/hide the stickyTools Div in the popup like you do with the 4 other options/divs in that setting?
A specific URL where the issue occurs.
popup panel
Steps to Reproduce
Open the popup panel. See the big power button to enabled and disable the extension. Set the CSS to hidden for the stickyTools div to hide it. Remove the CSS to show the button again.
Expected behavior
With the addition of the setting, set the CSS to hide that div. Without that setting, keep the div as visible.
Actual behavior
No current option to hide the button.
uBO version
1.52.2
Browser name and version
Chrome 118
Operating System and version
ChromeOS 118
The text was updated successfully, but these errors were encountered: