Closed 123SONIC321 closed 2 months ago
remove heavy elements
It removes cheer animations (not the cheer button) which uses so much ram and slows down the entire website on low end PCs
Hello! Glad you are enjoying the userscript.
Thanks for the suggestions! I have implemented both of them. Player controls are shown by default, and there is now an option in the config (Low Detail Mode) to remove cheer animations.
Thank you so much 😊🙏
Hi, it's me again @LaptopCat I wanted to let you know that I've been sharing your userscript with others, and they love it! I've even taken the initiative to translate it into Persian for my community. However, I've noticed that the text looks a bit off without a proper font. Could you please guide me on how to set up a custom font for it? And how can I test this userscript when the website is not broadcasting a match?
Hello,
You can change the font like this:
<div id="autobsc-overlay" style="position: absolute; top: 20%; z-index: 99999999; background: antiquewhite">
)<div id="autobsc-overlay" style="position: absolute; top: 20%; z-index: 99999999; background: antiquewhite; font-family: 'sans-serif'">
I'm not sure how to include custom fonts with a userscript, but this might help you: https://stackoverflow.com/questions/41852594/dynamically-load-fontsAs for testing the userscript without a broadcast,
it's not possible to fully test it (testing functionality like completing quizzes and etc.) without running some kind of private server software (I don't think anyone has made one yet)
But if you only need to test the overlay, you can try to make it always call the setup function (add this after line 488):
setupAutoBsc()
It should look like this:
Thank you, it worked. @LaptopCat I don't want to be a bother, but isn't it possible to fetch the font from a URL and not necessarily require the user to have the font installed on their system? For example, this is Vazirmatn font URL https://github.com/rastikerdar/vazirmatn/raw/master/fonts/ttf/Vazirmatn-Regular.ttf (.woff2 is also available)
And this only changes the overlay font, and the logs sent to the right side, I think their font is in a different place.
This seems to work:
I'm not sure how to change the font for all of the feed on the right side, but you can do it for each element:
RewardCard__textContainer__title
).RewardCard__textContainer__title {
font-family: "vazirmatn" !important;
}
You can add styles here (between the <style>
and </style>
lines)
And instead of making lots of styles, you can combine them by placing a comma between each selector:
.RewardCard__textContainer__title, .RewardCard__textContainer__subTitle {
font-family: "vazirmatn" !important;
}
Hi, I've recently discovered this userscript, and it's fantastic! I have a few suggestions to make it even better. How about adding an option to remove heavy elements so that devices with lower specs can also enjoy watching the match without their browser lagging? I've actually built something similar for myself using the Element Picker and the uBlock Origin extension. I'm not sure if this is helpful, but I hope it is.
Also, I recommend removing the element that blocks video interactions. This would allow us to use the stream player buttons (like on YouTube or Twitch) to change the live video quality and more.
I apologize for my poor English. I have no knowledge of coding or programming, and I created these using only the uBlock's Element Picker Best of luck!☆