// ==UserScript== // @name IITC plugin: ResTools BB Watch Reloaded // @namespace https://github.com/restools/BBWatchReloaded // @version 0.3 // @description Scan window for BBs on ornamented portals, then check results // @author vikend // @icon // @updateURL https://127.0.0.1 // @downloadURL https://127.0.0.1 // @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 = [[[],[]],[[],[]],[[],[]],[[],[]],[[],[]],[[],[]],[[],[]]]; //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() { $("