3/24/2024 0 Comments Ublock origin chrome not working![]() ![]() This was more of an issue with FFZ because all I was doing was sending a double click event to Reset Player, where FFZ would then handle reloading player and volume. So if you visited the front page first, and then a channel, the script had already ran and so it won't run again and attach the MO to the video player.I've updated it so whenever you visit a channel (on a pushState), it will check for the video player and then attach the MO again. Twitch is a Single Page Application, the script would only run once the first time you visited any Twitch page (or a hard refresh). ![]() I think the problem was the MutationObserver was not being attached to the video player if you visited the Twitch homepage first because it couldn't find it. So a few people were having issues of it not working, and others reported okay. If you don't have FFZ installed in will simply just reload the page (and lose theatre mode, chat). Also if you have FrankerFaceZ (FFZ) installed it will send a double click event to the reload player straight away, so you get to keep theatre mode, full screen, chat etc. This now only monitors when there are relevant DOM changes, rather than every half second, so it is more efficient and quicker. This UserScript detects when a mid-roll ad appears, and will reload the page (or the player) and thus OP's uBlock script will block the pre-roll ads again.Įdit: I've updated the gist, use this script instead OP's uBlock script is really good at blocking pre-roll ads, but mid-roll ads are sneaking through. You will need Tampermonkey or another UserScript extension for Chrome/Firefox etc, and install this script. I created a simple UserScript to make the mid roll ads a bit more bearable as it will automatically refresh the page or player if you have FFZ installed. It makes more of an effort to fix the volume issue after an ad, though he says there may be scenarios where it doesn't fix it. I've tested it quickly on both Firefox and Chrome, and it does indeed refresh the player with FFZ, or refresh the page without FFZ. So visit the link below for the new update. With this we can collaborate and improve it again with automatic updates. Wilkolicious ( /u/GIVE_YOUR_DOWNVOTES) has kindly forked and massively improved my code, and has included instructions on how to use it. Unfortunately I haven't had time to update the code, fix the audio or reply to messages. I really didn't expect this to get so much traction, I just thought I'd share a simple fix the worked for me. Thanks to /u/iTruthful and Conceptional for the art! Clip Contest: November 4th - 18th AMA: Previously: Certified Ergonomic Specialist and an Occupational Therapist By posting to /r/Twitch, you accept these rules and accept that subreddit moderators reserve the right to remove posts at their discretion.No Memes, Set up, or Art post submissions.Ensure there isn't a megathread for your topic.Don’t post in a language other than English.Don’t post a link post (has exceptions).Don’t post without an informative title.Don’t create a post that’s unrelated to Twitch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |