[Script] WME Place Harmonizer: Version 1.1, Mar 2016

Everything in the script can be region specific. I will update Mass to follow those rules. Do you use the same standards in ME? Anywhere else? I will go through state wikis soon to dig up what’s available but feel free to give specific regional lock rules in here.

To the best of my knowledge, MA’s place-locking rules are used in all six New England states; certainly used should be used in Maine.

Canada uses yet a different variant of place locking.
Note also that Canada standardizes on a different phone number format: +1-xxx-xxx-xxxx

As of Firefox version 44 (currently in beta) it is not allowed to assign a value to unsafeWindow (as it is an undefined constant for some reason). I’m currently checking some of the scripts in the forum to make sure they won’t break once Firefox 44 goes live (January 26). I’ve checked your userscript and it doesn’t seem to use unsafeWindow anywhere anyway, so it is safe to remove the code below from your script:

[code] var bGreasemonkeyServiceDefined = false;

    try
    {
        if ("object" === typeof Components.interfaces.gmIGreasemonkeyService)
        {
            bGreasemonkeyServiceDefined = true;
        }
    }
    catch (err)
    {
        //Ignore.
    }
    if ( "undefined" === typeof unsafeWindow  ||  ! bGreasemonkeyServiceDefined)
    {
        unsafeWindow    = ( function ()
        {
            var dummyElem   = document.createElement('p');
            dummyElem.setAttribute ('onclick', 'return window;');
            return dummyElem.onclick ();
        } ) ();
    }[/code]

I’ve been using this for a couple days. Great work, even if I’m not a fan of the specific keyboard shortcut. :stuck_out_tongue:

As a feature request, it would be nice if it noted when Opening Hours were left blank. Obviously this won’t apply to every type of Place (parks, landmarks, many others), but many definitely should (shops, restaurants, gas stations). Some can go either way, but for example, I don’t think Schools need this.

Bonus comment. For BP gas stations, it should direct to https://mybpstation.com instead of bp.com, which is more about their industrial side…
Similar for Marathon to http://mymarathonstation.com/

@nomadwolf:
Thx for the feedback. We just started beta testing a complete rewrite of the script, which will be available soon. The station urls will be the right ones in that version. We will incorporate the missing hours notification for appropriate categories.
At some point we will have a modifiable shortcut in the preferences. If you have any preference on that, please let us know. There are limitations, though; it has to be something non-text so that it works in a text box. Also needs to not interfere with the WME shortcuts.

Thx!

bmtg

I just found this script, and haven’t yet installed, and don’t have time to read the whole thread. I saw your first page mentions a wish list to pull from a google sheet directly. It is possible to accomplish. But the sheet would have to be publicly viewable or the script would need a way to authenticate itself.

Already being tested in the new Beta, integrated with the PNH Sheet. :slight_smile:

I can add you to the beta script GHO if you are interested.

Bmtg

I won’t have much time if any to play with it in the near future, I’m working on some other large projects currently that don’t include places. But its totally up to you. I don’t mind lurking :slight_smile:

Gulf gas stations need to have gulfoil.com as the URL instead of gulf.com, which is an unrelated electric company. Is this the right place to report this?

Love the script btw. It almost makes me not hate doing places :slight_smile:

@dsfargeg, thx. I have fixed that and a few other urls. Feel free to install the new version. Reports are always appreciated

@pesachz, I will add you later today. Lurking is fine!

bmtg

This isn’t so much a bug as a feature/change request. When a place has no address (for example):

https://www.waze.com/editor/?env=usa&lon=-86.11732&lat=40.49159&zoom=5&venues=179503509.1794904017.2065173

running the script throws up an alert window, which you have to stop and dismiss. I can understand not wanting to script places with no address (though it would be nice if the script would at least title-case the place for you if nothing else) but the alert window is kind of annoying. My suggestion would be to have a red-flagged message in the same place as the rest of the messages whenever the script is used on such a place.

I am reworking that part of the script to provide the notice in the banners, thx!

bmtg

Permalink: https://www.waze.com/editor/?env=usa&lon=-82.64791&lat=27.76455&zoom=6&venues=181797142.1817643737.2718002
Place name: LabCrop
Country: United States
Describe the error:

Mark, I didn’t see version number in the problem report but wanted to check it in the forum to see if I was overlooking something.

Good point. Will add that to the prefilled info. Thx

Is it possible for a script to change a residential point area to a residential point place?

Hi Guys!!
I am experiencing an authentication error in the WME Beta !!
After checking one by one the scripts that interact with the WME Beta, I have noticed that the following error occurs when you activate the script Place Harmonizer (designed for use in server USA only), in the international server !!
This error prevents proper authentication. !!!
I would like if you could check this out !!
I await your comments!!
Thank you!!

Cheers!!

Fernando,
I have posted a new version 0.908 that delays the script start up until the user info is in place. At any rate the script will not work outside the US at the moment.

Ok, thanks for your answer about the delay probably solve the problem. We look forward is implemented also for international server. Greetings and thanks[emoji12] [emoji106]

Enviado desde mi GT-I9500 mediante Tapatalk