External Link Shield – Exit Confirmation & Trust Gating

Hello :waving_hand:

I’ve updated the theme component to v2.0 :tada:: DEV: Replace CSS-drawn link icons with configurable d-icon rendering; fix anonymous blocking crashAdd files via upload - Pull Request #1 - VaperinaDEV/external-link-shield - GitHub

This update contains:

  • Swap the hand-maintained SVG mask-image icons for real <svg class="d-icon"> elements rendered via iconHTML(), inserted next to links by secure-links.js

  • Add settings:

    • exit_confirmation_continue_icon
    • external_link_icon,
    • trusted_link_icon,
    • external_link_icon_color,
    • trusted_link_icon_color,
    • link_icon_position (before/after)
  • Fix crash when enable_anonymous_blocking is disabled: currentUser.trust_level was read for anonymous users (null), throwing and silently leaving the original <a> unprocessed/unprotected; anonymous visitors now get a well-defined pass-through (icon + optional confirmation modal, no TL gating)


> ./support --coffee :heart:

2 Likes