From a765e4bd1c1c69dcdfcde02e05f8cfae5d395fbf Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 14 Dec 2013 20:08:29 +0000 Subject: [PATCH] stock intel plugin to add the "I'd rather be using IITC" logo onto the map --- plugins/iitc-ditigal-bumper-sticker.user.js | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/iitc-ditigal-bumper-sticker.user.js diff --git a/plugins/iitc-ditigal-bumper-sticker.user.js b/plugins/iitc-ditigal-bumper-sticker.user.js new file mode 100644 index 00000000..c30e5099 --- /dev/null +++ b/plugins/iitc-ditigal-bumper-sticker.user.js @@ -0,0 +1,26 @@ +// ==UserScript== +// @id iitc-plugin-portals-list@teo96 +// @name IITC Digital Bumper Sticker +// @category Stock +// @version 0.1.0 +// @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://www.ingress.com/intel* +// @include http://www.ingress.com/intel* +// @match https://www.ingress.com/intel* +// @match http://www.ingress.com/intel* +// @grant none +// ==/UserScript== + +var logoDiv = document.createElement('div'); +logoDiv.setAttribute('style', "position: fixed; left: 30px; top: 130px; z-index: 100; pointer-events: none;"); + +var img = document.createElement('img'); +img.setAttribute('src', 'http://iitc.jonatkins.com/assets/img/prefer-iitc-small.png'); + +logoDiv.appendChild(img); + +var targetContainer = document.getElementById('dashboard_container'); +targetContainer.appendChild(logoDiv);