Giter VIP home page Giter VIP logo

cr-fixes's People

Contributors

theoneric avatar

Watchers

 avatar

cr-fixes's Issues

Quality & language selection broken

Since Ellation/Crunchyroll transitioned to the new new HTML-Player (early 2020) the language and quality auto selection does no longer work. So far so unsurprising. The catch is that the HTML-Elements did not just get moved/renamed but rather the player now removes and adds HTML-elements every time they want to show some player UI.
Not only is this very inefficient, it also means that we can no longer easily trigger the button events to set quality and language โ€“ there are no buttons.
Simulating mouse movements seems difficult or impossible as Firefox places restrictions on those for security reasons, so getting the buttons to show up is also difficult.

Frankly, I don't see a way to get this to work without ridiculous effort like locating the right calls in the minified JS code, which frequently changes.
If anybody feels like figuring out a solution, that doesn't break with every minor update of CR's js code, I'll accept GitHub-pullrequests or git format-patch per email.

In the meantime I'll disable those options in settings.


Footnote:
Apparently they are using React[1] which seems to have a more convenient way for devs to add and and delete HTML-Nodes, which might explain why this is done so needlessly inefficient (disabling and enabling is not only faster, but also still easier than Reacts adding/deleting btw).

[1]: https://web.archive.org/web/20200203224503/https://blog.ellation.com/velocity-crunchyrolls-universal-react-player-e70a61b6dfa7?gi=1aaf43b55389

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.