Image Alt to Title

Hover tooltip of image displaying alt attribute, original title, some accessibility-related properties, and URL info.

These are versions of this script where the code was updated. Show all versions.

  • v1.10.1 01.02.2026.

    Removed @grant none, as per https://greasyfork.org/en/scripts/418348-image-alt-to-title/discussions/320463

  • v1.10.0 21.08.2025.

    Adding titles to SVG now only behind pref (toggle in menu). (Sorry for late update, forgot to push it here X| )

  • v1.9.2 04.11.2024.

    Another fix for SVG titles. Titled SVG (non-root) elements still take precedence over ours "view source" amendments.

  • v1.9.1 04.11.2024.

    Fix for SVG source overshadowing parent (possibly HTML) title.

  • v1.9.0 31.10.2024.

    SVG source to its title. Crude, but how I needed this, goddamit!

  • v1.8.9 24.01.2024.

    better optical formatting of location search (URLSearchParams)

  • v1.8.8 12.09.2023.
  • v1.8.7 11.09.2023.

    * 1.8.7 (2023-09-11): unified tab stop across devices (hopefuly)

  • v1.8.6 04.09.2023.
    • 1.8.6 (2023-09-04): values separated by tab stops from labels
      • 1.8.5 (2023-09-04): for multiline string, break them below label, so the first line aligns with rest
      • 1.8.4 (2022-11-04): trim long strings
      • 1.8.3 (2022-11-02): ~ minor, omit empty filename from info.
      • 1.8.2 (2022-10-23): ~ minor, bail out from image-only page also in Chrome / Edge.
      • 1.8.1 (2022-10-19): ~ minor text corrections.
      • 1.8.0 (2022-10-18): + 'generator-unable-to-provide-required-alt' https://html.spec.whatwg.org/multipage/images.html#guidance-for-markup-generators.
  • v1.8.4 04.11.2022.

    trim long strings

  • v1.8.3 02.11.2022.

    omit empty filename from info

  • v1.8.2 23.10.2022.

    minor, bail out from image-only page also in Chrome / Edge.

  • v1.8.1 18.10.2022.

    ~ minor text corrections.
    + `generator-unable-to-provide-required-alt` https://html.spec.whatwg.org/multipage/images.html#guidance-for-markup-generators.

  • v1.7.1 16.09.2022.

    Don't append reload-induced "Previous" info when same as new.

  • v1.7.0 14.09.2022.

    Rudimentary handling for data changed due consecutive load(s) after hover: simply display before latest and "previous" info. No merging.

  • v1.6.3 06.09.2022.
    • 1.6.3 (2022-09-07) URI decoded of name and path chunks.
  • v1.6.2 05.09.2022.

    Prevent rare incremental rewriting of image title by previous amended title.

  • v1.6.1 25.04.2022.

    fix restoring "no original title" attribute set scenario

  • v1.6.0 15.02.2022.

    Switched from `load` to `mouseenter` listener; fixed error with un-trimmed alts.

  • v1.5.2 14.09.2021.

    SRC URL info: omit empty path

  • v1.5.1 13.09.2021.

    removed stray console.log, sorry

  • v1.5.0 13.09.2021.

    + aria-label

  • v1.4.0 17.08.2021.

    Figcaption support and some fixes around datauri pics.

  • v1.3.3 12.08.2021.

    Fixed missing alt reporting (omitted alt was mistakenly reported as `''` (empty string));
    for alts with leading or trailing whitespace display in quotes.

  • v1.3.1 06.05.2021.

    Encountered additive re-setting of "empty" titles (on youtube); tried to mitiagte with minor delay after image load; seems to be working for now.

  • v1.3.0 12.02.2021. Added dimensions (in CSS px only, sadly), workning jsdoc types (in VSC), reordered path info
  • v1.2.0 09.02.2021. aria-description maybe?
  • v1.1.5 09.02.2021. fix aria-describedby. (I doubt I'll ever see it somewhere out there)
  • v1.1.4 09.02.2021. fix that recursion prevention thing to make it actually work
  • v1.1.3 09.02.2021. fix for "reused" image elements - augmented title no longer recurses after next load; added illustration
  • v1.1.1 14.01.2021. Just better name and description
  • v1.1.0 13.01.2021. Dropped ambitions for userstyle helper, added SRC info chunks
  • v1.0 08.12.2020.