-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long lyrics not loaded any more in petit lyrics #32
Comments
Came here from the comments posted on greasyfork. Hopefully I am posting in the right place (I've never posted on GitHub before) but this still seems to be a problem as of December 2021. At around 15/16 lines it cuts off from the rest of the lyrics that are there normally. |
Thank you for your report, @forrvalhalla. But I have to learn how my user script works again. I forgot how I coded this, years ago. |
Ach, it seems it will be impossible to fix. Here is the decoder: // https://www.base64decoder.io/javascript/#javascript-generic-base64-decode-with-support-for-16-bit-encoded-utf-16-strings
// Javascript Generic Base64 decode with support for 16-bit encoded (UTF-16) strings
function base64DecodeUnicodeToString(str) {
// Convert Base64 encoded bytes to percent-encoding, and then get the original string.
var percentEncodedStr = atob(str).split("").map(function(c) {
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
}).join("");
return decodeURIComponent(percentEncodedStr);
} The request is made by |
Maybe I can retrieve that $(document).ready(function () {
eval("var a=\"sjn3hEe0VJLr-q_GZomfbBtIXyNgU4WxFuDHM8v5p2TS7AQdzi.C9lP1k6RcYaK+O@w\";var b=a.split(\"\").sort().join(\"\");var c=\"hrV2EEe3r77E00hrTe32Ve7Jh-3Ae2LJ\";var d=\"\";for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));var key = (\"\"+d+\"\");");
// Such a mysterious key!
$.post(
"/com/get_lyrics.ajax",
{
lyrics_id:1009898
},
function(data, textstatus, XMLHttpRequest){
var len = data.length;
for(var i=0; i<len; i++){
context.font = "12px sans-serif";
context.fillText(Base64.decode(data[i].lyrics), 0, (20*i)+20);
}
$(".ffrm").hide();$(".ffrm").show();
}
);
}); There are some stuff I still want to check. |
https://greasyfork.org/en/forum/discussion/3042/long-lyrics-interrupted-at-petitlyrics-com
The text was updated successfully, but these errors were encountered: