I've found that the issue is located somewhere in the initialization of the script. It waits for a user login, even though there is already a user logged in. By executing the following bit of code I'm able to make Validator appear again on Firefox:
In the shape of a bookmarklet that gives:
So I'm guessing (as I can't read the source code) that the check for a logged in user is incorrect or that the state listener is added too late.
Personally I'm using this code to trigger when the user has logged in and this seems to work fine:
EDIT: oh wait, it seems I also have another check before I can actually access the tabs (to add a tab or manage them):
Code: Select all
Waze.loginManager.events.triggerEvent('login');
Code: Select all
javascript:Waze.loginManager.events.triggerEvent('login');
Personally I'm using this code to trigger when the user has logged in and this seems to work fine:
Code: Select all
if (typeof Waze === 'undefined' ||
typeof Waze.loginManager === 'undefined') {
setTimeout(init, 100);
return;
}
if (!Waze.loginManager.hasUser()) {
Waze.loginManager.events.register("login", null, init);
Waze.loginManager.events.register("loginStatus", null, init);
if (!Waze.loginManager.hasUser()) {
return;
}
}
Code: Select all
var tabs = document.querySelector('#user-tabs .nav-tabs');
if (!tabs) {
setTimeout(init, 400);
return;
}
Re: [Script] WME Validator 1.1.16 / 29.01.2016