3 ms·
As the website author, you can see which extensions the client browser is running, no? Wouldn't that make it your responsibility to detect then disable your cus
by omniglottal 4y ago
As the website author, you can see which extensions the client browser is running, no? Wouldn't that make it your responsibility to detect then disable your custom keybindings rather than the users's?
- daveidol 4y ago> As the website author, you can see which extensions the client browser is running, no? No, not really. Not unless it specifies certain `web_accessible_resources` which you try to load - but that's a bit of a hack, needs to be done on an extension-by-extension basis, and won't even work for all extensions.
- tempestn 4y agoI wouldn't think so. There are infinite ways for people to customize their browsers; it's not reasonable to expect website developers to account for them all. Plus in the case of your parent, their website implements vim keybindings, so basically all of them are going to conflict with this extension, and it's going to be pretty useless if they detect that situation and react by changing all of them to something non-standard.
- qolop 4y agoIt's not possible to detect the presence of Vimium. https://github.com/philc/vimium/issues/2399 https://github.com/philc/vimium/issues/2399
- cepp 4y agoI distinctly remember when I first got on-boarded to Superhuman their app detected Vimium running and asked me to disable it for their site.
- qolop 4y agoHow long ago was this? There used to be a way to do this for earlier versions of Vimium but that doesn't work anymore. Very interested in knowing if it's still possible. Will check out superhuman.
- Timothee 4y agoI work at Superhuman. We used to have code to detect Vimium, though we evidently we removed it very recently, while working on something tangentially related. It was working but definitely finicky over the years. The initial way we checked for it was looking for document.body.matches('*[_vimium-has-onclick-listener]') but apparently that stopped working in 2018. We then used a variation of this code: https://github.com/hackape/Detect-Vimium/blob/master/detect-vimium.js https://github.com/hackape/Detect-Vimium/blob/master/detect-... which seems to work still.