-
Notifications
You must be signed in to change notification settings - Fork 3
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 suggestion] option for enhanced visual awareness #3
Comments
Will probably take a while, but I've been considering adding content scripts for another purpose anyway. I'm going to experiment a bit and see what I can do. There are other possibilities that might be worth exploring, too. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If you don't find my initial experiment too convincing, we can always use the international warning symbol for radioactive high-voltage laser-emitting biohazards that coat the floor and make it slippery. |
I would vote for horizontal and perhaps only 1 at the top |
I have some bad news. Like many other beginners, I assumed that if I injected new elements into the DOM (like these bars), Firefox would have my back covered on the aspect of security. As it turns out, such a practice is not safe because page scripts can interact with DOM elements injected by extensions (i.e. they're not completely isolated). This is Bad. Some addon developers prefer to ignore this fact, but I prefer to do the responsible thing and just drop this idea, at least until the devs at Mozilla give me some API to do this safely. References:
Fortunately, there are alternatives. Unfortunately, there aren't many. But there is an interesting one that is not on that list: the recently-added theme API. |
A little update: I have toyed around with the theme API, and I have to say it's pretty cool. It is kind of limited, and it doesn't get along with native themes (dark and light), but it can be made to work with other extensions that add custom themes. I'll probably implement a new version for testing soon and ask for feedback here before I decide what to do with it. |
Another update: I postponed this issue for a while because the Theme API exists only from v58 onwards, and there were more pressing matters to take care of first. My plan is to implement a set of themes, one for each color (default, orange, red, purple), and add an option to change them dynamically when appropriate. The default theme would be one similar (maybe even identical) to Firefox default theme, but the extension would only use it if the user didn't install a custom theme. If the user did install a custom theme, the default should be that custom theme. A far less complex alternative that is still on the table would be to use system notifications. I could allow the user to enable them only for individual states. So you could get notified only when the status is RED, for example. As I am typing this, I came up with something else that sounds like it might be worth a shot: maybe I can automatically display the popup (without the user clicking on any icons) when something is detected. For this to be effective, I would have to make some changes to have the popup update in real time, which would be a worthwhile improvement anyway. There is a significant drawback to this approach, though: if the user clicks anywhere while the page loads, the popup will disappear immediately... hm 🙄 |
Running FF Nightly and having experimented with https://color.firefox.com I would likely not favour theme changing for the reason of having the OS and FF dark themed and introducing a change in the luminosity, which comes inherently with a colour change, would be rather sort of (environmentally) disturbing/intrusive.
would that work consistently on different OS? And then it would be something outside the browser window and eventually trigger a sound alert too in case the system notification are linked to a sound alert. From my perspective I would find this likely rather (environmentally) bothersome.
That sounds most appealing to me, as an option (perhaps non-default).
But in any case it would have popped up and served (initially) its intended purpose of |
Definitely non-default.
I think a good way to do this would be to make the popup appear only the first time a resource is detected as coming from an edge node when you navigate to a given page. I have yet to confirm that I can actually do this, though. EDIT: Can't do this either 😩 .
There are many extensions that use system notifications, and they work consistenly regardless of the OS. I can make notifications disappear automatically to make them less annoying. Given that the alternative is the Theme API, which would be far more complex to work with, I'd say it's worth a try. |
😞 , system 🔔 is not for me, neither would be theme colouring |
came across this WX https://addons.mozilla.org/en-US/firefox/addon/pericles/ which serves sort of an transparent and collapsible overlay in the browser window |
It injects DOM elements, which is the same approach I was going to use first. It's not safe. Any website can use Javascript to detect those elements, therefore they make it easier for them to identify you, and there might be other risks involved. If such risks are acceptable to you, I am willing to implement what I was going to implement originally in #3 (comment). |
Ach well, I liked the idea of such collapsible overlay and hoped that with a same-origin policy a layer of isolation is achievable. But of course safety before 🍬 |
The Toolbar API will land sometime in the next few versions of Firefox, that would more than likely work for these purposes. |
I think I would be one of bothered users and I would consider it as accessibility issue. |
@Mikaela ,
The suggestion is an answer to an enhanced visual awareness. Also the animated icon remains only as long as the site is opened contrarily to my above animated E example. Anyway it's often possible to modify an extension's toolbar icons, and even urlbar icons. For True Sight for instance: In userConfig.css (located in
From there on the user can craft his own icons and copy them to |
When browsing I hardly look at the address/tool bar and rather focus on the content window thus in such work flow missing the DCF+ icons (colours). Else having getting used to tilting up my eyes from the content window to one of the bars in search for the DCF+ icons (colours).
I would rather be content to have a more intrusive but enhanced/instant visual awareness with a frame/border (top and each side in the style of red/white or yellow/black hazard tape) placed/injected in the content window .
Suppose that others may prefer the less intrusive icons this could perhaps be a option.
The text was updated successfully, but these errors were encountered: