Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - McFloy

Pages: [1]
1
Help Support Topics Archive / Re: Online player not working
« on: September 16, 2016, 08:05:25 »
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:
Code: [Select]
// ==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;
};

Pages: [1]