WME Polygon Issue Filter

Filter Place Update Requests (PURs) inside custom WKT polygons. No external dependencies. Shows matching PUR venues in the sidebar with toggleable polygon layers.

These are versions of this script where the code was updated. Паказаць усе версіі.

  • v2026.05.31.19 01.06.2026

    Fix blank sidebar tab button: adopt exact JAI registerScriptTab({}) + tabLabel DOM pattern

    • registerScriptTab() now returns and we populate tabLabel with safe createElement power (fa-power-off) + 'PI' short label
    • Power icon on the actual tab pill (green/gray + tooltip) like JAI's '⏻ JAI'
    • Removed broken setTimeout querySelector injection and duplicate internal power toggle row
    • Toggle on tab icon controls scriptEnabled, layers, and pane content
    • Version 2026.05.31.19
    • Matches user screenshots and explicit request to copy JAI's tab + power style
  • v2026.05.31.18 01.06.2026

    Use short tabName 'PI' + tabIcon 'power' so the sidebar tab button shows a power icon + label like WME Junction Angle Info does

  • v2026.05.31.17 01.06.2026

    Add power button style toggle (like WME Junction Angle Info)

    • Small power icon (⏻) with green/gray state
    • Hover tooltip
    • Click to toggle script on/off
    • Matches the visual style the user requested from the Junction Angle Info script
    • Version 2026.05.31.17
  • v2026.05.31.16 01.06.2026

    Add proper on/off toggle for the entire script in the sidebar tab

    • Toggle is always visible at the top of the 'Polygon Issues' tab
    • When disabled: shows clear message + keeps polygons saved
    • When enabled: full functionality (layers + PUR list)
    • State is persisted per user
    • Version 2026.05.31.16
  • v2026.05.31.15 01.06.2026

    Fix blank sidebar tab icon

    • Removed invalid tabIcon: 'map-marker' which was causing a blank tab
    • WME now falls back to showing the first letters of the tab name ("PI")
    • Added comments with recommended icon names to try
    • Version 2026.05.31.15
  • v2026.05.31.14 01.06.2026

    Make Refresh button more responsive + add diagnostics

    • Button now shows 'Refreshing...' and disables itself briefly
    • Added console logs when refresh is clicked and when it completes
    • This helps confirm the button is working even if the list content doesn't change
    • Version 2026.05.31.14
  • v2026.05.31.13 01.06.2026

    Improve WMETB wait: now always polls until WMETB reports loaded (even if WMETB starts loading after the script)

    • Removed the early 'if (window.WMETB)' guard so the wait works when WMETB loads later
    • Matches the user's request to properly wait for 'WMETB: Finished loading!'
    • Version 2026.05.31.13
  • v2026.05.31.12 01.06.2026

    Wait for WMETB (WME Toolbox) to finish loading before full initialization

    This prevents race conditions with WMETB's jQuery UI and other components. Version 2026.05.31.12

  • v2026.05.31.11 01.06.2026

    Enrich PUR list rows with actual metadata we already have (update types + age)

    This gives real value even on builds where the official dialog cannot be opened programmatically. Version 2026.05.31.11

  • v2026.05.31.10 01.06.2026

    Acknowledge PUR dialog limitation gracefully on this WME build

    • On total failure, show a clear message that the dialog cannot be opened due to SDK limitation on the current WME version
    • Copy venue name to clipboard as a small convenience
    • Stop spamming the console with the same error every time
    • Version 2026.05.31.10
  • v2026.05.31.09 01.06.2026

    Prioritize live venue.id at click time + cleaner failure logging

    • Strongly try the live item.venue.id (re-read at click time) before other candidates This is critical because the SDK populates venue.id asynchronously on some builds
    • Include liveVenueIdAtClick in the failure log
    • Version 2026.05.31.09
  • v2026.05.31.08 01.06.2026

    Add nuclear object-passing fallbacks for PUR dialog + richer failure logging

    • Try passing raw venue / PUR objects directly to showVenueUpdateRequestDialog
    • Log Object.keys() for venue and PUR on total failure so we can see the actual structure
    • This is the last practical layer before we need to know the exact shape of the objects on the user's build
  • v2026.05.31.07 01.06.2026

    Further harden PUR dialog opening (inspired by UR-MP Tracking patterns)

    • Stronger re-resolution of venue object before Selection
    • Added final fallback to legacy W.model.venues
    • Much more detailed failure logging (includes full venue + sample PUR)
    • This matches techniques used in mature scripts that handle PURs reliably
  • v2026.05.31.06 01.06.2026

    Improve PUR dialog opening reliability

    • Expanded candidate ID collection from PUR objects
    • Added fallback using wmeSdk.Selection.select({ object: venue }) when the direct showVenueUpdateRequestDialog calls fail
    • This helps on builds where the SDK only partially exposes venue IDs
  • v2026.05.31.05 01.06.2026

    Bump version to 2026.05.31.05 (added project README)

  • v2026.05.31.04 01.06.2026

    Improve @license metadata for Greasy Fork

    • Change @license from 'MIT; URL' to just 'MIT' (SPDX identifier) as recommended by Greasy Fork guidelines
    • This makes the license display cleanly on the script's info page
  • v2026.05.31.03 01.06.2026

    Bump version to 2026.05.31.03 (license addition)

  • v2026.05.31.02 01.06.2026

    Add MIT License

    • Create LICENSE file
    • Add @license metadata and comment in userscript header
  • v2026.05.31.02 01.06.2026

    Bump version to 2026.05.31.02

  • v2026.05.31.01 01.06.2026

    Improve reliability of opening PUR dialogs across WME builds

    • Replace single-ID resolution with multi-candidate strategy
    • Try multiple possible IDs (venue + individual PUR objects) until one successfully opens the dialog
    • Much more defensive against the wildly inconsistent SDK object shapes in different WME versions

    This should reduce (though not always eliminate) the "venue with id: undefined" errors when clicking PUR rows.

  • v2026.05.31.01 01.06.2026

    Adopt new version format YYYY.MM.DD.NN

    • Changed from 2026.01.XX.21 → 2026.05.31.01
    • Version now includes actual month and day for better update ordering and clarity on Greasyfork / Tampermonkey

    New scheme going forward: YYYY.MM.DD.build

  • v2026.01.XX.21 01.06.2026

    Fix PUR dialog crash when SDK does not expose venue IDs

    • Added robust resolveVenueId(venue, purs) helper that tries many common locations (.id, .venueId, attributes.id, and inside PUR objects)
    • Pre-compute resolvedId once per result
    • Non-resolvable venues now render as dimmed, non-clickable rows with "(ID unavailable)" note instead of crashing on click
    • Better console diagnostics + user snackbar on failure

    This follows the existing defensive pattern for SDK inconsistencies across WME builds (see the wmeSdk.Map methods warning).

    Also includes earlier Trusted Types fixes (innerHTML + jQuery creation) for Waze's report-only CSP.

    Version bump: 2026.01.XX.21

  • v2026.01.XX.20 01.06.2026

    27

  • v2026.01.XX.20 01.06.2026

    26

  • v2026.01.XX.19 01.06.2026

    25

  • v2026.01.XX.19 31.05.2026

    24

  • v2026.01.XX.18 31.05.2026

    23

  • v2026.01.XX.17 31.05.2026

    22

  • v2026.01.XX.16 31.05.2026

    I wish I did not have to comment every commit!

  • v2026.01.XX.15 31.05.2026

    hopeful

  • v2026.01.XX.14 31.05.2026

    getting closer

  • v2026.01.XX.13 31.05.2026

    bugsy

  • v2026.01.XX.12 31.05.2026

    hopefull

  • v2026.01.XX.11 31.05.2026

    ggg

  • v2026.01.XX.10 31.05.2026

    layer problems

  • v2026.01.XX.08 31.05.2026

    another attempt

  • v2026.01.XX.06 31.05.2026

    still not working

  • v2026.01.XX.05 31.05.2026 Imported from URL
  • v2026.01.XX.04 31.05.2026 Imported from URL