IITC-CE / Community-plugins

A collection of amazing plugins made by IITC community.
45 stars 16 forks source link

Add my almost-8 highlighter #44

Closed Artoria2e5 closed 3 months ago

Artoria2e5 commented 4 months ago

Some people like to help raise portals to level 8 -- you've probably heard about people who go out of their ways to add the last L8 resonator. This plugin is for them: it highlights portals that are 1, 2, or 3 L8-resonators to level 8.

Here's a look on Washington DC: Screenshot 2024-06-04 at 12-16-02 Ingress Intel Map-or8

The 1res-to-8 portals are purple, the 2-to-8 ones are magenta, and the 3-to-8 ones are yellow. There's also a feature that colors almost-8 portals with the player's L8 resonator(s) grey, but as I'm not in the US, this example includes none of them.

(Why not just 1, but 1,2,3? Well, I figured that people might want to meet and eat. Now 3 agents are enough to make a 7, but a L8 meal-portal is even better.)


Anti-pattern: scraper. Portal details are requested to get full resonator deployment status.

Artoria2e5 commented 4 months ago

Note to self: add a smaller screenshot for @screenshot metadata soon. Not now, because sleep.

Alright, new synthetic (spliced from many marker layers to show most features, then checkerboard to show visibility on dark and light maps) screenshot:

github-actions[bot] commented 4 months ago

Changes are detected:

Artoria2e5/highlight-7miss1.meta.js

// ==UserScript==
// @author          Artoria2e5
// @name            Highlight almost-8 portals
// @category        Highlighter
// @version         0.1.2
// @id              highlight-7miss1@Artoria2e5
// @description     Find portals that are 1/2/3 resonators to level 8. Makes its own requests; use with caution.
// @namespace       https://github.com/IITC-CE/ingress-intel-total-conversion
// @downloadURL     https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/Artoria2e5/highlight-7miss1.user.js
// @updateURL       https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/Artoria2e5/highlight-7miss1.meta.js
// @icon            https://cdn.jsdelivr.net/gh/Artoria2e5/misc@master/ingress/highlight-7miss1.svg
// @screenshot      https://cdn.jsdelivr.net/gh/Artoria2e5/misc@master/ingress/highlight-7miss1.png
// @homepageURL     https://github.com/Artoria2e5/misc/issues
// @antiFeatures    scraper
// @match           https://intel.ingress.com/*
// @match           https://intel-x.ingress.com/*
// @grant           none
// ==/UserScript==