youtube icon indicating copy to clipboard operation
youtube copied to clipboard

a 1000 extra tweaks to come! - Please help us name (/tag) them in advance

Open ImprovedTube opened this issue 1 year ago • 3 comments

YouTube has over 1274 "experiment flags"

  • Please help us name and tag them, so that we can make these available on two new / automated lists:

1. My Trashbin (disabled stuff) 2. My Tweaks ( voluntarily enabled or modified YouTube experiments)

  • both lists filtered by what youtube gave you. So each list shows one half
  • and we can order each list by how frequently they are set by anybody.
    • [ ] so we need to collect statistics about our settings
  • and we can count(/notify) about new additions by YouTube (if they are interesting, frequently changed enough already)
    • [ ] so we need to get a little stream of these Experiment Flags. Maybe from random users (or only opt-in).
      • [ ] then we can also even just see what is the default i.e. 99 % true. And for number-values: What range is set by youtube, and what average. (Suggestion what inputs we might provide as a slider.)

  • As of now YouTube might gives your account several more, which are not on the list. - You can add them to the spreadsheet, through: devTools (F12 key) while on youtube and entering yt.config_.EXPERIMENT_FLAGS into the console (prompt: ">")

Long-term structure/vision for our UI:

  1. my content & discovery logic

  2. my setup:
    a) general Video Features (+specific tweaking, like Youtube's Experiment Flags added/enabled by the user). b) Cleaning/Trashbin (Up to 100s of CSS rules, JS variables, uBlock rules. (including disabled Youtube's Experiment Flags) (Ideally/hopefully set&forget) c) Minimap/Layout (more sections, maybe Drag&drop for Sizes, Positions & css selector and paint bucket tools for colors?)

( https://github.com/code-charity/youtube/discussions/848#discussioncomment-588359, https://github.com/code-charity/youtube/issues/890#issuecomment-1034264001 )

while extra exceptions/conditions like video genre could be set for many features on right click. and shortcuts or buttons to toggle any experiment flag or anything could be setup with right click too.

ImprovedTube avatar May 07 '24 17:05 ImprovedTube

So when next update is going to be pushed to web store?

Anoaxx avatar May 08 '24 16:05 Anoaxx

guess! @Anoaxx

ImprovedTube avatar May 08 '24 20:05 ImprovedTube

the way uBO 'set' works is they put a Proxy over object prototypes https://github.com/gorhill/uBlock/blob/c154aaa69c6a2a4009d43923f1097c6298062b82/assets/resources/scriptlets.js#L556-L586 they even hide proxy presence so YT cant detect it (afaik YT doesnt try, but plenty of shady websites try to detect adblock/overrides) https://github.com/gorhill/uBlock/blob/c154aaa69c6a2a4009d43923f1097c6298062b82/assets/resources/scriptlets.js#L578-L580

This way no matter what inside real yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid any reader will always receive overridden value. We can definitely implement this, much saner, safer and more reliable than blindly writing to yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid hoping 1 its there 2 it wasnt read by YT engine yet

thanks @raszpl #2430

ImprovedTube avatar Jul 02 '24 23:07 ImprovedTube