youtube icon indicating copy to clipboard operation
youtube copied to clipboard

1. Shortcuts need adoptive developer AND 2. Shortcuts vs. Smart Keyboard Event Analysis! : if(1-3 chars){might be a shortcut?} if(2-10chars){a Search? a part of the transcript or top comments?}

Open ImprovedTube opened this issue 1 year ago • 3 comments

1. Our shortcuts script deserves a review /an adoptive developer

  • [ ] should have a global option / outside of the tab
  • [ ] we allow more different key combinations than chrome://extensions/shortcuts, but that doesn't mean we can't make use of the standard too and connect both ways somehow. - (once we are there, then we have something awesome/unique that could be improve almost every browser extension)

Structure: #648 #1220.
Feature: #862. Youtube's defaults: #517 #110 #1566.

Bugs: #1770 #1174 #1446 #1815 (UX)

  • i didn't write the shortcut logic, which is why i list it for adoption for now!

Shortcuts.js & the "UI".js


+ 2. Smart (combined) Key event-chain analysis (?)

  • [ ] Smart Keyboard Event Analysis: if there is any input above 1 chars (outside of a form field), then that is likely..!..a search!... (except for ctrl, but shortcuts might be less popular than we feel (even ctrl+f). Few percent of global internet users might use shortcuts beyond ctrl+c ctrl+v , just more among us afaik).

    • [ ] ..and if there are matches from the transcript of the current video, then those should appear on top of Youtube's regular search suggestions = search history) Showing transcript results need not depend on the amount of characters but amount of transcript matches. I.e. the string "and " might have 0 matches in the transcript already - or 120. But whenever there are 1-5 matches, that must be perfectly relevant to search for, ( while the maximum of matches to be considers might be proportional to the duration of the video and minutes of playback time done and session-duration until a certain maxium. )
      • [ ] Optionally searching in comments too. integrating the code from https://github.com/sonigy/YCS (maybe limited to top 10000 comments per video) (especially comments with time-marks)
  • [ ] While Youtube's shortcuts consisting of a single letter are mostly used accidentally (k j l f i c o w m #1566) and could be delayed/aborted/undone if the second letter follows within 0.4 seconds, or if Input reveals to be a string/word staring with those letters. rather than jut a rof of consonants representing actual shortcuts.

    • [ ] (we also got feature requests to simply disable all youtube shortcuts...)
  • [ ] Also if a user ever happens to type a word on Youtube like autoplay, transcript or codec then results from Improvedtube & Youtube Screenshots could appear too, in the top right or so, next to youtube's



( Yet our search is minimal only: #1171, #748 https://github.com/code-charity/youtube/blob/d59edf9094a05bdf386ffff6cb2a87dae2584841/js%26css/satus.js#L3130-L3180
)

ImprovedTube avatar Feb 12 '23 05:02 ImprovedTube