34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
// ==UserScript==
|
|
// @id iitc-digital-bumper-sticker
|
|
// @name IITC Digital Bumper Sticker
|
|
// @category Stock
|
|
// @version 0.1.1.@@DATETIMEVERSION@@
|
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
|
// @updateURL @@UPDATEURL@@
|
|
// @downloadURL @@DOWNLOADURL@@
|
|
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Adds a "I'd rather be using IITC" logo to the standard intel map.
|
|
// @include https://*.ingress.com/intel*
|
|
// @include http://*.ingress.com/intel*
|
|
// @match https://*.ingress.com/intel*
|
|
// @match http://*.ingress.com/intel*
|
|
// @include https://*.ingress.com/mission/*
|
|
// @include http://*.ingress.com/mission/*
|
|
// @match https://*.ingress.com/mission/*
|
|
// @match http://*.ingress.com/mission/*
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
var targetContainer = document.getElementById('dashboard_container');
|
|
if (targetContainer) {
|
|
|
|
var logoDiv = document.createElement('div');
|
|
logoDiv.setAttribute('style', "position: fixed; left: 20px; top: 130px; z-index: auto; pointer-events: none;");
|
|
|
|
var img = document.createElement('img');
|
|
img.setAttribute('src', 'http://iitc.me/assets/img/prefer-iitc-200.png');
|
|
|
|
logoDiv.appendChild(img);
|
|
|
|
targetContainer.appendChild(logoDiv);
|
|
}
|