Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more default setting work #2262

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

more default setting work #2262

wants to merge 12 commits into from

Conversation

raszpl
Copy link
Contributor

@raszpl raszpl commented May 10, 2024

This covers all switching functions:
select
switch
checkbox
slider
colorPicker

Now picking default option/value automatically removes config variable from storage.
Next step after merging this will be adding function pruning config from unneeded default stored variables for all users called on extension update. After that we can finally start optimizing /web-accessible/ code.

@ImprovedTube
Copy link
Member

ImprovedTube commented May 16, 2024


1. default:true vs. 2 inverted switches (1. which shall be listed in active features too by default, 2. which are just "trashbin candidates" together with everything called hide / remove and a list of youtubes experiment flags )
& #1685


pruning config from unneeded default stored variables for all users called on extension update

Might first start collecting statistics. Since the amount (=toggled off) represents the past and might point to bugs etc. already (besides that the future data will be better in that, and this might also just define curious users, who tried everything and busy users who didnt.)


@raszpl
Copy link
Contributor Author

raszpl commented May 16, 2024

we can add commits here o replace the 17+ times ===! false here with noticing when the key was removed.

1 No need, this commit works as is. nothing else needs to be changed.
2 ===! false are for things that only work in disabled state. This commit doesnt break those.

// REACTION OR VISUAL FEEDBACK WHEN THE USER CHANGES A SETTING (already automated for our CSS features):

still works fine with this commit. Every time config variable gets removed a message reflecting that is still send and triggers

document.addEventListener('it-message-from-extension', function () {

1. default:true vs. 2 inverted switches

we currently have: (old news:) 3 defaults at installation (extra buttons below the player. Thanks for caring at #2085),

  • (which always appeared inverted in "my active features", in favor of the inverted ones😲. Yet should even appear as "my active features(3)" on the front screen . as a workaround currently they could have the skeleton value false and be enabled at installation in background.js )

more perils of faking showing something enabled by default. "my active features" shows only things User changed from defaults.
In particular case of "Extra buttons below the player" there is not enough room in the spot where they are being injected in the first place so enabling them by default is IMO a bad idea. On videos with long channel name they show up really small/almost invisible/invisible. Can you spot them here:
Clipboard02
:) they are really there I promise:
Clipboard01

this is why I abandoned by rewrite of those buttons https://github.com/raszpl/YouTube-Extension/commits/repeat-wip/ imo they dont work well

  • could alternatively only have an inverted switch/light by default visually only/CSS, just indicate YouTube's default and that it might be nice/performant to get rid of these

something like https://www.oo-software.com/en/shutup10 asks if you want to apply recommended settings before letting user custom configure. Maybe an option called "apply recommended settings", or "show recommended settings". Can work like "my active features" listing only differences between current and recommended with recommended selection flashing green or something.

  • and use another skeleton value "inverted=true".
  • (or could be called negated NOhdr or hdrOFF in the code. )

why invert something twice? :o

Im thinking of a way for automatically visualize select/switch/slider/colorPicker default selection in certain way so User can clearly see whats the default when switching.
Select dropdown menu can automatically append (default) text label.
Slider can add second grey dot in the default spot.
Switch a grey circle in default position.
etc etc

pruning config from unneeded default stored variables for all users called on extension update

Might first start collecting statistics. Since the amount (=toggled off) represents the past and might point to bugs etc. already (besides that the future data will be better in that, and this might also just define curious users, who tried everything and busy users who didnt.)

statistics are cool and all, but think about privacy and Google policies. Slurping user data, no matter how trivial, without consent is a big no no and might end up banning the extension.

The developer has disclosed that it will not collect or use your data.

Only Google/Microsoft/Facebook are allowed to do that :)

@ImprovedTube
Copy link
Member

hi! @raszpl

Not those checking for " === false" , like transcript. Cant be switched off live now.
Need to search the repo for === false ( and === true for those "default true"'s which aren't actually "default-true"'s but inverted switches )

buttons below the player

yes! See: #377 (comment)
(And the thread #1445 isn't really younger (reposted))

And yesterday: #2086 (comment) (This will be good for most users and increase use (Since many people dont) use many extensions, and just want to find something on the youtube side itself. You might also remember Magic actions for youtube's little player button expanding as a 3x3 or so (may it changed by now)

why invert something twice? :o

sorry, they be 0x inversion but just 1x visual variant somehow maybe? ( check box/toggle: off = in the trashbin = lights off. )

Slider can add second grey dot in the default spot.

yes, good for sliders! while a normal checkboxes or toggles should be very obvious already (a 3-way toggle can use a dot too -1 0 1)

statistics

#1972 (comment)
Yes, currently collects no data. That can be adjusted (within meaningful and legal boundaries).
Anonymously ranking features by stability and popularity is a specific main feature. And hardly of of interest. (Chrome Web Store lists three types specifically: storing data beyond main functionality, selling identified user's data for specifally for creditworthiness checks or anything) (BTW, Google analytics used to be the main 3rd party for proving statistics and having annonymized data only, besides it seems July, after many years google analytics is moving to a new version and deleting trillions data points. ( https://github.com/code-charity/youtube#-behind-the-scenes ) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants