Mod Archive Forums
Website => Help & Support => Help Support Topics Archive => Topic started by: Bryd0 on August 27, 2016, 16:25:27
-
Just when I'd hop in and listen to more modules, I find that the online player isn't working at all. I tried refreshing it on the same module it was to be played on more than twice and still didn't work, and the same for other modules I get working on it too. It seems that there's a problem with the JavaScript for it, and I hope I'm not the only one reporting this issue.
-
Oops, I tested the player after the latest upgrade but apparently some of the files were still cached, so it worked for me. I know what's broken but apparently I am currently not allowed to fix it (https://modarchive.org/forums/index.php?topic=3904.msg14528#msg14528).
-
Yes, I did see what was going on. Despite that, I hope it gets fixed soon.
-
It's been a week now, and it's still not fixed. How long will this go on for? And if Saga is still not permitted to fix it, who else can? :\
-
Magic sauce to make it work:
Right click on the window, select 'inspect element'
hit escape until the console opens
type this into the prompt:
window.libopenmpt = Module; initPlayer();
Module now plays.
Alternatively, use greasemonkey or tampermonkey with this script:
// ==UserScript==
// @name Fix online player
// @namespace https://modarchive.org/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://modarchive.org/index.php?*
// @grant none
// ==/UserScript==
window.onerror = function(message, source, lineno, colno, error) {
if(source === 'https://modarchive.org/style/js/chiptune2.js' && lineno === 150) {
window.libopenmpt = window.Module;
console.log('player fixed, retry');
initPlayer();
return true;
}
return false;
};
-
I've done the latter, and it works like a charm. Thanks so much :)
-
Seems like my previous fix still didn't quite fix it; now it should be fully functional again!
-
It is, and now I can say that there's no need for the Greasemonkey script now. Thanks a bunch, Saga ;D