code-charity / youtube

[top~1 open YouTube & Video web-extension] Enrich your experience & choice! 🧰180+ options & clever features📌set+forget📌Longest-standing(been tough). Please join🧩us👨‍👩‍👧‍👧 ..⋮ {playback|content discovery|player|extra buttons|distractions|related videos|shorts|ads|quality|codec|full tab|full screen}
http://improvedtube.com
Other
3.43k stars 519 forks source link

unmangle/cleanup/simplifying. Ready. #2256

Closed raszpl closed 4 months ago

ImprovedTube commented 4 months ago

wouldn't it be nice if settings.js, if it is a GUI template, came almost minified, with similar scroll height as the GUI and strategically placed/manual line breaks or indentation only? (While IDE's could display it the same as now by and intentional/manual line breaks could remain displayed marked up then.)
At least (,said before,) i don't understand why IDEs dont actually support JSON & XML, which could rather be displayed as tree-shaped-spreadsheet-fields.

ImprovedTube commented 4 months ago

https://github.com/code-charity/youtube/blob/b1b9a41a7f5e2f931dcbef3a44a0bd787c5cd1f8/menu/satus.js#L3215

Btw, semantically search is missing pathes like Appearance > Details > Buttons (below the player) & section titles like:

component: 'section',
variant: 'card',
title: 'watchedVideos',

https://github.com/code-charity/youtube/issues/1935#issuecomment-2102772173

raszpl commented 4 months ago

wouldn't it be nice if settings.js, if it is a GUI template, came almost minified

no :) minify is what you do in the deploy phase when make scripts are packaging for release

with similar scroll height as the GUI and strategically placed/manual line breaks or indentation only? (While IDE's could display it the same as now by and intentional/manual line breaks could remain displayed marked up then.) At least (,said before,) i don't understand why IDEs dont actually support JSON & XML, which could rather be displayed as tree-shaped-spreadsheet-fields.

Why would you want unreadable mess in source files? Most IDEs support auto formatting packed JSON. For example Ctrl Alt L in pychrm.

Btw, semantically search is missing pathes like Appearance > Details > Buttons (below the player)

Ill look into that

& section titles like:

component: 'section',
variant: 'card',
title: 'watchedVideos',

this is a section, cant include that, otherwise searching player would display whole contents of player section, search "watched" and you get all three entries