// ==UserScript== // @name IITC plugin: ResTools BB Watch Reloaded // @namespace https://git.martinvylet.cz/vykend/ResTools-BB-Watch-Reloaded // @version 0.5 // @description Scan window for BBs on ornamented portals, then check results // @author vikend // @icon // @updateURL https://git.martinvylet.cz/vykend/ResTools-BB-Watch-Reloaded/raw/branch/main/RestoolsBBWatchReloaded.js // @downloadURL https://git.martinvylet.cz/vykend/ResTools-BB-Watch-Reloaded/raw/branch/main/RestoolsBBWatchReloaded.js // @match https://intel.ingress.com/* // @grant none // ==/UserScript== /* globals $, L, dialog */ function wrapper(plugin_info) { 'use strict'; // Default definitions for IITC plugin if (typeof window.plugin !== 'function') window.plugin = function() {}; // ##### PLUGIN START ##### window.plugin.restoolsBBWatchReloaded = function() {}; window.plugin.restoolsBBWatchReloaded.LAYERS = {}; window.plugin.restoolsBBWatchReloaded.LAYERGROUP = null; window.plugin.restoolsBBWatchReloaded.BB_STORAGE = 'plugin-restools-bbwatch-reloaded'; window.plugin.restoolsBBWatchReloaded.WAVE_PORTALS = [[[],[]],[[],[]],[[],[]],[[],[]],[[],[]],[[],[]],[[],[]]]; window.plugin.restoolsBBWatchReloaded.timezone = 0; //struct of WAVE_PORTALS: [ wave: [ ornamented[], results[] ] ] //edit this with start times according to YOUR local times (ie. as seen in COMM) window.plugin.restoolsBBWatchReloaded.TIMETABLE = { wave1: "14:00", wave2: "14:25", wave3: "14:50", wave4: "15:15", wave5: "15:40", wave6: "16:05", wave7: "16:30", wave8: "16:55" //needed for calculations, put there end of wave 7 }; // --- CSS --- window.plugin.restoolsBBWatchReloaded.setupCSS = function() { $("