- fix redirecting on some systems
- more restrictive match rules, shouldn’t match anymore on Google Login (fix #314)
This commit is contained in:
10
main.js
10
main.js
@ -6,22 +6,24 @@
|
||||
// @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 *://www.ingress.com/intel*
|
||||
// @match *://www.ingress.com/intel*
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @include https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
// REPLACE ORIG SITE ///////////////////////////////////////////////////
|
||||
if(document.getElementsByTagName('html')[0].getAttribute('itemscope') != null)
|
||||
throw('Ingress Intel Website is down, not a userscript issue.');
|
||||
|
||||
window.iitcBuildDate = '@@BUILDDATE@@';
|
||||
|
||||
// disable vanilla JS
|
||||
window.onload = function() {};
|
||||
|
||||
if(window.location.protocol !== 'https:') {
|
||||
window.location.protocol = 'https:';
|
||||
var redir = window.location.href.replace(/^http:/, 'https:');
|
||||
window.location = redir;
|
||||
throw('Need to load HTTPS version.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user