diff --git a/code/utils_misc.js b/code/utils_misc.js index 8600a0ed..a95f5c0f 100644 --- a/code/utils_misc.js +++ b/code/utils_misc.js @@ -54,7 +54,7 @@ window.postAjax = function(action, data, success, error) { // use full URL to avoid issues depending on how people set their // slash. See: // https://github.com/breunigs/ingress-intel-total-conversion/issues/56 - url: 'http://www.ingress.com/rpc/dashboard.'+action, + url: window.location.protocol + '//www.ingress.com/rpc/dashboard.'+action, type: 'POST', data: data, dataType: 'json', diff --git a/main.js b/main.js index 970ac8db..aa8b9598 100644 --- a/main.js +++ b/main.js @@ -1,13 +1,13 @@ // ==UserScript== // @id ingress-intel-total-conversion@breunigs // @name intel map total conversion -// @version 0.6-@@BUILDDATE@@ +// @version 0.7.1-@@BUILDDATE@@ // @namespace https://github.com/breunigs/ingress-intel-total-conversion // @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/total-conversion-build.user.js // @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/total-conversion-build.user.js // @description total conversion for the ingress intel map. -// @include http://www.ingress.com/intel* -// @match http://www.ingress.com/intel* +// @include *://www.ingress.com/intel* +// @match *://www.ingress.com/intel* // ==/UserScript==