[SCRIPT] DrivesTabEnhancer v0.6 (Obsolete)

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderator: Unholy

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[SCRIPT] DrivesTabEnhancer v0.6 (Obsolete)

Postby Twister-UK » Fri Aug 30, 2013 6:23 am

Please Note...
The functionality of this script has now been integrated into the URO+ script, and this standalone version is no longer supported.




This is a quick dust-down of an old script I started writing a little over a year ago but abandoned due to a lack of understanding how WME was behaving behind the scenes. With an extra years-worth of experience poking around in the WME code, and spurred on by a chance comment elsewhere in the forums, here's a version which now works more or less as originally planned...


So, what does it actually do? Simply, it modifies the Drives tab in the standard WME UI so that, on the first page of results, it shows the drive summaries for every drive in the user history which is fully available, as opposed to just the first 5 drives in their history.

This means that, when the user clicks on the summary for any drive on that first page, WME will then display the drive trail on the map. Any drive not shown on that first page is then only available as a summary - based on the behaviour of my own Waze account, it appears that full histories are only available for the past 2 weeks-worth of drives.

By placing all the fully-available drives on the first page of the tab, it both serves to indicate which drives are fully-available for viewing and also reduces the number of pages on the tab, minimising the number of clicks required to search back through the summaries.


Note that due to the weird URL-redirection-juju going on in WME beta, I haven't enabled beta support in this script yet...



Firefox+Greasemonkey version: http://userscripts.org/scripts/show/176855
Chrome packaged version: http://crx.chizzum.com/DriveTabEnhancer.crx
Last edited by Twister-UK on Thu Feb 06, 2014 5:33 pm, edited 7 times in total.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1935
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 258 times
Been thanked: 1516 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby dknight212 » Fri Aug 30, 2013 6:27 am

ah, was just about to post about beta support (it nukes the left menu system) then I actually read the whole of your post ...

And personally I'm not hugely in favour of more acronyms to learn! Would it be possible to spell it out more in the Extensions page?
dknight212
 
Posts: 4964
Joined: Sun Apr 24, 2011 9:21 am
Location: London, UK
Has thanked: 473 times
Been thanked: 636 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby paulkok_my » Sat Aug 31, 2013 3:56 am

It's not working for me on the public editor. I get this message "Error finding your drives, please try again later."

If I disable it, I can see my drive.
ImageImageImageImageImage
Area Manager: Shah Alam / Klang, Southern Region, Malaysia
Asus Zenfone 2 on Android 5.0 (ZE551ML)

Join our FB group: Peninsular Malaysia, Sabah/Sarawak
or Google+ group: Waze in Malaysia on Google+
paulkok_my
Waze Local Champs
Waze Local Champs
 
Posts: 933
Joined: Thu Jul 19, 2012 4:34 am
Location: Selangor, Malaysia
Has thanked: 170 times
Been thanked: 177 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby Twister-UK » Sat Aug 31, 2013 7:26 am

Sounds like it isn't finding any fully available drives for you, which either means there's a URL problem similar to the one I had in WME beta, or you haven't recorded any drives in the past few weeks.

With the script disabled, does WME display a route when you click on the first drive listed in the tab?

If it does, with the script still disabled please can you have a look in the Firebug window or Chrome javascript console when you click on the Drives tab for the first time (or click on one of the page numbers at the end of the tab to show a different set of drives), and let me know which URL is being requested by the tab. On my setup it looks like this:

Code: Select all
https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=5


Thanks
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1935
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 258 times
Been thanked: 1516 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby paulkok_my » Sat Aug 31, 2013 2:13 pm

Twister-UK wrote:Sounds like it isn't finding any fully available drives for you, which either means there's a URL problem similar to the one I had in WME beta, or you haven't recorded any drives in the past few weeks.

With the script disabled, does WME display a route when you click on the first drive listed in the tab?

If it does, with the script still disabled please can you have a look in the Firebug window or Chrome javascript console when you click on the Drives tab for the first time (or click on one of the page numbers at the end of the tab to show a different set of drives), and let me know which URL is being requested by the tab. On my setup it looks like this:

Code: Select all
https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=5


Thanks

I hope I got it right. With the script disabled, I got this:
Code: Select all
https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=5


With the script enabled, I got this:
Code: Select all
GET https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=108 406 (Not Acceptable)
https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=108
ImageImageImageImageImage
Area Manager: Shah Alam / Klang, Southern Region, Malaysia
Asus Zenfone 2 on Android 5.0 (ZE551ML)

Join our FB group: Peninsular Malaysia, Sabah/Sarawak
or Google+ group: Waze in Malaysia on Google+
paulkok_my
Waze Local Champs
Waze Local Champs
 
Posts: 933
Joined: Thu Jul 19, 2012 4:34 am
Location: Selangor, Malaysia
Has thanked: 170 times
Been thanked: 177 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby WildCard_25 » Sat Aug 31, 2013 2:19 pm

Getting the same message as paulkok_my with DTE.

Here are the relevant parts of the log.

Code: Select all
DriveTabEnhancer: requesting https://world.waze.com/Descartes-live/app/Archive/MyList?minDistance=1000&offset=70&count=5 dte_0.1.user.js:31
DriveTabEnhancer: received 5 drives dte_0.1.user.js:31
DriveTabEnhancer: 74 drives in history dte_0.1.user.js:31
GET https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=74 406 (Not Acceptable) OL-5fc3da5c.js:13


And, yes, all 74 display a route when clicked on, 75th and older don't :)
ImageImageImage
WildCard_25
Area Manager
Area Manager
 
Posts: 82
Joined: Mon Aug 12, 2013 11:29 am
Location: Toowoomba, QLD, Australia
Has thanked: 64 times
Been thanked: 29 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby paulkok_my » Sat Aug 31, 2013 2:25 pm

Wildcard_25 wrote:Getting the same message as paulkok_my with DTE.

Here are the relevant parts of the log.

Code: Select all
DriveTabEnhancer: requesting https://world.waze.com/Descartes-live/app/Archive/MyList?minDistance=1000&offset=70&count=5 dte_0.1.user.js:31
DriveTabEnhancer: received 5 drives dte_0.1.user.js:31
DriveTabEnhancer: 74 drives in history dte_0.1.user.js:31
GET https://world.waze.com/Descartes-live/app/Archive/List?minDistance=1000&offset=0&count=74 406 (Not Acceptable) OL-5fc3da5c.js:13


And, yes, all 74 display a route when clicked on, 75th and older don't :)

At least you can see 74 drives in history. I don't get to see any drives except "Error finding your drives, please try again later.'
ImageImageImageImageImage
Area Manager: Shah Alam / Klang, Southern Region, Malaysia
Asus Zenfone 2 on Android 5.0 (ZE551ML)

Join our FB group: Peninsular Malaysia, Sabah/Sarawak
or Google+ group: Waze in Malaysia on Google+
paulkok_my
Waze Local Champs
Waze Local Champs
 
Posts: 933
Joined: Thu Jul 19, 2012 4:34 am
Location: Selangor, Malaysia
Has thanked: 170 times
Been thanked: 177 times

Re: [SCRIPT] DrivesTabEnhancer v0.1 (20130830)

Postby Twister-UK » Sat Aug 31, 2013 2:58 pm

Thanks for the debug info everyone, looks as if the Waze servers take exception to requests for too many drives at once - this isn't a problem I've seen myself, only having 38 full drives in my own history to play with... I'll need to tweak the script based on whatever the maximum is, and then figure out how to make it obvious which drives are full and which are partial.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1935
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 258 times
Been thanked: 1516 times

Re: [SCRIPT] DrivesTabEnhancer v0.2 (20130901)

Postby Twister-UK » Sun Sep 01, 2013 10:02 pm

Tweaked the code to respect the 50 drives per page limit imposed by WME...

Firefox+Greasemonkey version: http://userscripts.org/scripts/show/176855
Chrome packaged version: http://crx.chizzum.com/DriveTabEnhancer.crx
Last edited by Twister-UK on Mon Sep 02, 2013 7:55 pm, edited 1 time in total.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1935
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 258 times
Been thanked: 1516 times

Re: [SCRIPT] DrivesTabEnhancer v0.2 (20130901)

Postby paulkok_my » Mon Sep 02, 2013 1:47 am

Twister-UK wrote:Tweaked the code to respect the 50 drives per page limit imposed by WME...

Firefox+Greasemonkey version: http://userscripts.org/scripts/show/176855
Chrome packaged version: http://crx.chizzum.com/DriveTabEnhancer.0.2.crx

+1

It's working now. Thanks :D
ImageImageImageImageImage
Area Manager: Shah Alam / Klang, Southern Region, Malaysia
Asus Zenfone 2 on Android 5.0 (ZE551ML)

Join our FB group: Peninsular Malaysia, Sabah/Sarawak
or Google+ group: Waze in Malaysia on Google+
paulkok_my
Waze Local Champs
Waze Local Champs
 
Posts: 933
Joined: Thu Jul 19, 2012 4:34 am
Location: Selangor, Malaysia
Has thanked: 170 times
Been thanked: 177 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: spymorass