diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index 83a7038a2..97663c8b2 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -1,12 +1,12 @@ // ==UserScript== -// @id iitc-plugin-bookmarks@ZasoGD +// @id iitc-plugin-bookmarks@ZasoGD@Umer936 // @name IITC plugin: Bookmarks for maps and portals // @category Controls // @version 0.2.12.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ -// @description [@@BUILDNAME@@-@@BUILDDATE@@] Save your favorite Maps and Portals and move the intel map with a click. Works with sync. +// @description [@@BUILDNAME@@-@@BUILDDATE@@] Save your favorite Maps and Portals and move the Intel Map with a click. Works with sync. Now links to Google Maps with route of portals in folder. // @include https://www.ingress.com/intel* // @include http://www.ingress.com/intel* // @match https://www.ingress.com/intel* @@ -230,6 +230,9 @@ // Create a folder elementTemp = '
  • '+folderLabel+''; + + + // Print link with portal locations + text = "https://www.google.com/maps/dir/Current+Location/"; + var i; + for (i = 0; i < alllats.length; i++) { + text += alllats[i] + "/"; + } + + elementTemp += '
  • MapIt!'; + + + // Add folder 'Others' in last position if(idFolders != window.plugin.bookmarks.KEY_OTHER_BKMRK) { element += elementTemp; } else{ elementExc = elementTemp; } @@ -844,6 +863,8 @@ // Create a folder elementTemp = '
    '+folderLabel+'
    '; + + // For each bookmark var fold = folders['bkmrk']; for(var idBkmrk in fold) {