Satisfactory Map Icon Filter

Filter some icons

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

// ==UserScript==
// @name			Satisfactory Map Icon Filter
// @version			2020.06.05
// @description		Filter some icons
// @include			https://satisfactory-calculator.com/ru/interactive-map
// @icon			https://www.google.com/s2/favicons?domain=satisfactory-calculator.com
// @namespace		https://greasyfork.org/users/7568
// @homepage		https://greasyfork.org/ru/users/7568-dr-yukon
// @author			Rainbow-Spike
// @grant			none
// ==/UserScript==

/*
 For items detection in savegame files
 If you need to leave some items on a map - comment their strings by //, reload site page, reupload savegame file
*/
var db = [
	/* Hard Drives */
//	'HardDrive',
	'Bolt', // Electrolocked only

	/* Ores */
	'iron_new',
	'copper_new',
	'Stone',
	'CoalOre',
//	'CateriumOre',
//	'Sulfur',
//	'QuartzCrystal',
//	'Bauxite',
	'UraniumOre',
//	'SAMOre',

	/* Items */
	'IronScrews',
//	'ReinforcedIronPlates',
//	'Engine',
//	'ModularFrame',
//	'ModularFrameHeavy',
//	'EncasedSteelBeam',
	'Wire',
	'Cables',
//	'CircuitBoard',
//	'AILimiter',
//	'HighSpeedConnector',
//	'Computer',
//	'SuperComputer',
//	'RadioControlUnit',
//	'Heatsink',
//	'Battery',
	'NuclearWaste'
];

function action ( ) {
	document.querySelectorAll ( '.leaflet-data-marker' ).forEach ( function ( e ) {
		var img = e.querySelector ( 'image' ).getAttribute ( 'xlink:href' );
		for ( var i in db ) {
			if ( img.search ( db[i] ) != -1 ) e.style = "display: none"
		}
	} )
}
setInterval ( action, 100 );