[Skill calc V.2] Class does not load automatically
Posted: Sun Sep 06, 2020 4:57 am
When loading a build via url, the class is not selected correctly.
Had a quick play with the javascript in there and it looks related to these lines in skillbuilder.min.js:
It looks like the load_build_data() function will be called before setup_calc(). Breaking after setup_calc() and calling load_build_data() from the console then continuing gives me the correct behaviour but that may not be the correct solution.
Edit: Simple tampermonkey script that causes the build to load correctly:
Had a quick play with the javascript in there and it looks related to these lines in skillbuilder.min.js:
Code: Select all
$(document).ready(function() {
setup_calc()
});
if (Object.keys(build_data).length > 0) {
load_build_data()
}
Edit: Simple tampermonkey script that causes the build to load correctly:
Code: Select all
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bdocodex.com/us/skillbuilder/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
load_build_data()
})();