crowbartools / MixrElixr

Browser extension that enhances your Mixer viewing experience with custom emotes, new features, and a ton of options.
https://mixrelixr.com
GNU General Public License v3.0
23 stars 7 forks source link

Added the ability to auto close costreams #35

Closed ghost closed 6 years ago

ghost commented 6 years ago

Description of the Change

This adds the option for viewers to automatically close costreams. Firstly, this will detect if the page the viewer is on is a costream. If it is, it will find and click on all close buttons except on the streamer the viewer is visiting. For example, if a viewer is going into a costream with Blossom, Buttercup, Bubbles, and Bob and they went to mixer.com/bubbles, the script will close Blossom, Buttercup, and Bob's streams.

Benefits

This saves time for people who normally close costreams by automating the process. People with low bandwidth who can't watch more than one stream at a time will benefit from this greatly.

Possible Drawbacks

This may close too many streamers for a viewer. For example, if they want to visit a 4 person costream and only wish to close 2 of the streams.

Applicable Issues

1) Once in a blue moon, if the viewer is coming in from the homepage, the script will not detect that the page is a costream. I have not been able to identify why this is case yet. 2) I have not been able to test this because I cannot find applicable streamers in a costream. But, in theory, if we had two streamers, Bob and Billy_Bob, and the viewer visited mixer.com/bob, neither stream would close because the "bob" is in both names.

Note: Please be aware that we may require changes (in code or in the UI) if we believe they are required to meet the vision and standards of Elixr. Don't take suggestions for tweaks personally, we are all simply trying to make Elixr the best that it can be :)