Re:Firefox Picture-in-Picture
by bovine3dom on Wednesday July 08, 2020 @05:11PM
(#23774271)
You can get most pages down to 1 character if you craft your own custom selector, e.g. https://github.com/tridactyl/tridactyl/blob/dc8919e7e65d5dfa...
For the record we don't recommend piping straight to `!` as a malicious (and fairly Tridactyl specific) site could use it to execute whatever it wanted. We have a default bind for open in mpv that sanitises things - https://github.com/tridactyl/tridactyl/blob/dc8919e7e65d5dfa... using https://github.com/tridactyl/tridactyl/blob/dc8919e7e65d5dfa...
Re:Firefox Picture-in-Picture
by michaelmrose on Friday July 10, 2020 @05:08PM
(#23796474)
Thanks. A question occurs to me shouldn't such sanitation be its own step in order to be generalized to anything that the user wants to run?
bind V hint -W ! mpv to show a letter or letters adjacent to all links and open the one chosen in mpv. Normally most pages have few enough links visible that hints are either 1 or 2 characters. This means instead of picking up the mouse you can hit 3 keys.