"Re-format like numbers" does not work with YouTube's "Rolling like counts" experiment #976
Open
1 task done
Labels
bug
Something isn't working
Have you tried to find similar open issues?
Browser
Mozilla Firefox
Browser Version
Firefox 118.0.1
Extension or Userscript?
Extension
Extension/Userscript Version
v3.0.0.12
Video link where you see the problem
https://www.youtube.com/watch?v=bKxf0NQyb0c
What happened?
When "Re-format like numbers" is enabled, it does not actually reformat the like count, and the like to dislike bar does not show up. This happens if the user has the "Rolling like counts" experiment, where the like count updates in real time. This experiment seems to be rolling out to many people now.
This is the result (Like numbers are not reformatted, and the RYD bar does not exist in the HTML):
![image](https://private-user-images.githubusercontent.com/105595945/278177049-eceab956-5731-4b5e-ac60-8379bbafd9f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTQ4OTksIm5iZiI6MTcyNTU5NDU5OSwicGF0aCI6Ii8xMDU1OTU5NDUvMjc4MTc3MDQ5LWVjZWFiOTU2LTU3MzEtNGI1ZS1hYzYwLTgzNzliYmFmZDlmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNlQwMzQ5NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZWFkMDA3ODRjOTI0MmI5YmZlYWMxNDg0MjFjNjQxMTg5MDE1MGZjZjE1NGUwMDRiYmU1YmZmMGJhN2FkZmNkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vPkaDmxgCCKMogL3makH5KY7ToKgabEaqGtTKIls1Ok)
It probably happens because of this error:
![console](https://private-user-images.githubusercontent.com/105595945/278177205-3ac3fcea-0516-4dae-85a3-f7ab7efe4b3f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTQ4OTksIm5iZiI6MTcyNTU5NDU5OSwicGF0aCI6Ii8xMDU1OTU5NDUvMjc4MTc3MjA1LTNhYzNmY2VhLTA1MTYtNGRhZS04NWEzLWY3YWI3ZWZlNGIzZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNlQwMzQ5NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lN2Q0OWI3MGVjZjU3NDkwNjFkMzQ2M2IxYTY0MzE3MmE3ODljNGVlNjJjOTEwZmE2YmEyNjRkOGY1MGE0YmMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Fke0WnuXjUfwXOznPMgwXcuk8eKIdWj4GbMqsNq3BYk)
Here is the HTML structure of the like button with this experiment enabled if that helps anything:
![htmlstructure](https://private-user-images.githubusercontent.com/105595945/278177299-bc341906-bff7-400b-9201-e82e6b3f341f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTQ4OTksIm5iZiI6MTcyNTU5NDU5OSwicGF0aCI6Ii8xMDU1OTU5NDUvMjc4MTc3Mjk5LWJjMzQxOTA2LWJmZjctNDAwYi05MjAxLWU4MmU2YjNmMzQxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNlQwMzQ5NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05OTBkZWU5ZmFlYWU0OTAwMDBhZjE0NzZmOTc4MGNiYmUzMDViOWY0Y2U5MDE1N2M2ZjRkNmZlNGJlZmZjMGNkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.7TuSG7F3_gP6FnqV9BIypfO3pED0pkgUshAQOkAss6g)
If Re-format like numbers is disabled, the RYD bar will appear and work as normal.
How to reproduce/recreate?
If you have the rolling like counts experiment, enable "Re-format like numbers", and go to any video.
If you don't have the rolling like counts experiment: open YouTube in a private window, and then check if the like button's HTML structure looks like it does above. If it doesn't, close the private window and try again until it does. The experiment seems to be fairly common now so it shouldn't take too many tries.
Will you be available for follow-up questions to help developers diagnose & fix the issue?
Yes
The text was updated successfully, but these errors were encountered: