theoneric / cr-fixes Goto Github PK
View Code? Open in Web Editor NEWA Firefox Extension adding some (dire needed) functionality to the crunchyroll.com webpage.
License: GNU General Public License v3.0
A Firefox Extension adding some (dire needed) functionality to the crunchyroll.com webpage.
License: GNU General Public License v3.0
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.