Ingress Intel Plus

Makes your life with Ingress Intel easier.

目前為 2014-05-29 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Ingress Intel Plus
// @description Makes your life with Ingress Intel easier.
// @include     *.ingress.com/intel*
// @version     0.3.0
// @gran none
// @namespace https://greasyfork.org/users/1264
// ==/UserScript==

// Variables de uso general para el script
var style = document.createElement("STYLE");

// Modificacion de la barra de desplazamiento horizontal
document.getElementById("dashboard").style.overflowX="hidden";

// <INICIO Modificacion del "restrict to map">
	var styleText = document.createTextNode("#plext_viewport_restrict_checkbox_container:hover{opacity:1.0;}");
	var styleText2 = document.createTextNode("#plext_viewport_restrict_checkbox_container{opacity:0.2;transition:all 1s;}");
	style.appendChild(styleText);
	style.appendChild(styleText2);
	document.head.appendChild(style);
	styleText=styleText2=null;
// <FIN Modificacion del "restrict to map">

// <INICIO Creacion boton ocultar comm>
	var botonComm = document.createElement("DIV");
	botonComm.id="commVisibilitySwitcher";
	botonComm_Text=document.createTextNode("Ocultar Comm");
	botonComm.appendChild( botonComm_Text );
	botonComm_Style = document.createTextNode("#commVisibilitySwitcher{background-color:#222; border:1px solid #EBBC4A; bottom:-45px; color:#EBBC4A; cursor:pointer; height:25px; padding:0px 5px; position:absolute; right:85px; text-align:center; width:110px;}");
	style.appendChild(botonComm_Style);
	botonComm.addEventListener("click", switchComm, false);
	document.getElementById("dashboard_container").appendChild(botonComm);
// <FIN Creación de boton ocultar comm>

// Funcion switchComm
function switchComm()
{
	var comm = document.getElementById("comm");
	var boton = document.getElementById("commVisibilitySwitcher");
	if( comm.style.display=="none" )//El comm está oculto, hay que mostrarlo
	{
		comm.style.display="block";
		boton.textContent="Ocultar Comm";
	}
	else
	{
		comm.style.display="none";
		boton.textContent="Mostrar Comm";
	}
}