Hint: to change a lot of scripts, execute this:
    sed -r '/\/\/ @match\s+http:\/\/www.ingress.com\/intel/r /tmp/includefile' -i~ *.user.js
`/tmp/includefile` should contain these lines: (no trailing newline!)
    // @include        https://www.ingress.com/mission/*
    // @include        http://www.ingress.com/mission/*
    // @match          https://www.ingress.com/mission/*
    // @match          http://www.ingress.com/mission/*
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // ==UserScript==
 | |
| // @id             iitc-plugin-highlight-hide-team@vita10gy
 | |
| // @name           IITC plugin: Hide portal ownership
 | |
| // @category       Highlighter
 | |
| // @version        0.1.1.@@DATETIMEVERSION@@
 | |
| // @namespace      https://github.com/jonatkins/ingress-intel-total-conversion
 | |
| // @updateURL      @@UPDATEURL@@
 | |
| // @downloadURL    @@DOWNLOADURL@@
 | |
| // @description    [@@BUILDNAME@@-@@BUILDDATE@@] Show all portals as neutral, as if uncaptured. Great for creating plans.
 | |
| // @include        https://www.ingress.com/intel*
 | |
| // @include        http://www.ingress.com/intel*
 | |
| // @match          https://www.ingress.com/intel*
 | |
| // @match          http://www.ingress.com/intel*
 | |
| // @include        https://www.ingress.com/mission/*
 | |
| // @include        http://www.ingress.com/mission/*
 | |
| // @match          https://www.ingress.com/mission/*
 | |
| // @match          http://www.ingress.com/mission/*
 | |
| // @grant          none
 | |
| // ==/UserScript==
 | |
| 
 | |
| @@PLUGINSTART@@
 | |
| 
 | |
| // PLUGIN START ////////////////////////////////////////////////////////
 | |
| 
 | |
| // use own namespace for plugin
 | |
| window.plugin.portalHighlighterHideOwnership = function() {};
 | |
| 
 | |
| window.plugin.portalHighlighterHideOwnership.highlight = function(data) {
 | |
|   var scale = window.portalMarkerScale();
 | |
| 
 | |
|   var params = getMarkerStyleOptions({team: TEAM_NONE, level: 0});
 | |
|   data.portal.setStyle(params);
 | |
| }
 | |
| 
 | |
| var setup =  function() {
 | |
|   window.addPortalHighlighter('Hide portal ownership', window.plugin.portalHighlighterHideOwnership.highlight);
 | |
| }
 | |
| 
 | |
| // PLUGIN END //////////////////////////////////////////////////////////
 | |
| 
 | |
| @@PLUGINEND@@
 |