Page 90 of 237

Re: [Script] WME Validator 0.4.5 (BETA) / 10.01.2014

PostPosted: Sat Jan 11, 2014 12:18 am
by glenan56
Wonderful powerful script .. it finds errors that I never thought they could exist. Link to the wiki which may explain why I have to fix them. I fix problems and learn to be a better editor in the same time.

Thanks a lot for this script !!!

Re: [Script] WME Validator 1.1.10 / 05.11.2015

PostPosted: Mon Nov 09, 2015 12:29 pm
by Glodenox
Would it be possible to add the recently added speed limits and tunnel indications to the custom template list? I propose the names ${speedAB}, ${speedBA} and ${tunnel}.

Re: [Script] WME Validator 1.1.10 / 05.11.2015

PostPosted: Mon Nov 09, 2015 1:07 pm
by Glodenox
If the verified tag is part of the segment, it should be possible for Validator to pick it up and expose it in the custom templates. So that would be an interesting addition for countries that have imported speed limits indeed.

Re: [Script] WME Validator 1.1.10 / 05.11.2015

PostPosted: Mon Nov 09, 2015 2:46 pm
by Glodenox
Even though it was slightly off-topic, it was still useful for the topic. So no harm done :)

EDIT: ah, didn't notice that you accidentally wrote "TB" instead of "Validator". Meh.

Re: [Script] WME Validator 1.1.13 / 16.11.2015

PostPosted: Tue Nov 17, 2015 8:26 am
by Glodenox
I have the same issue as jdelosa. Would it be possible to hide that bubble somehow? They were handy when I first used validator, but by now it is just taking up space and even hiding useful information.

Re: [Script] WME Validator 1.1.14 / 17.11.2015

PostPosted: Wed Nov 18, 2015 8:43 am
by Glodenox
The issue of changing class names and such can be sort of solved by having a fallback scenario in case you can't find the container. The fallback could be positioning it as before or perhaps even with absolute values in the bottom left corner or so.

I've even got 3 lines of tabs and don't find it too bad. I've been thinking about a way to make the tab list more compact and intend to experiment with it a bit, but these tabs are more compact than each script taking up their own bit of space on the left.

Re: [Script] WME Validator 1.1.15 / 13.12.2015

PostPosted: Tue Dec 29, 2015 12:01 pm
by Glodenox
As of the past couple of days, WME Validator has been refusing to load for me. The browser console gives this error:
Code: Select all
TypeError: invalid assignment to const `unsafeWindow'   WME_Validator.user.js   line 129 > eval:1:277

Browser: Firefox 44.0b2
Greasemonkey version: 3.6

I've had this happen to another script as well (WME LiveMap Closures) where I could just remove the whole section on unsafeWindow as the script didn't use it anywhere. For WME Validator I've had to do some more digging and converting, but the following segment seems to be the culprit:
Code: Select all
    try {
      'object' === typeof Components.interfaces.gmIGreasemonkeyService && (b = !0)
    } catch (a) {
    void 0 != typeof unsafeWindow && b || (unsafeWindow = function () {
      var a = document.createElement('p');
      a.setAttribute('onclick', 'return window;');
      return a.onclick(null)

The whole setAttribute trick to get an unsafeWindow on Chrome no longer works and can therefore be removed. For the code that uses Components I receive the error in the browser console that it is no longer supported in Firefox and will be removed soon. Luckily, unsafeWindow is available and doesn't need to be overwritten. Sadly enough, Google Chrome then can't find unsafeWindow any more, so there'll be issues there.

Re: [Script] WME Validator 1.1.15 / 13.12.2015

PostPosted: Sun Jan 03, 2016 3:54 pm
by Glodenox
FYI: I've slightly updated my previous reply about WME Validator no longer working in the next version of Firefox.

While spitting through the code, I noticed that WME Validator adds its own tracker to Google Analytics. What's the purpose of this tracker?

Re: [Script] WME Validator 1.1.15 / 13.12.2015

PostPosted: Wed Jan 27, 2016 8:26 am
by Glodenox
I've warned about this and even PM'ed the author about this with the simple fix that is needed. The script is now failing on a bit of code that doesn't even work any more.

It is related to the removal of the Components object as of Firefox 44. This makes the logic so that the script tries to overwrite unsafeWindow (as it wrongly expects it's not running Firefox), which then results in an exception being thrown.

Re: [Script] WME Validator 1.1.16 / 29.01.2016

PostPosted: Fri Jan 29, 2016 9:58 am
by Glodenox
Yup, seems to be working as intended again. Thanks!