Web Inspector

Allows you to inspect web pages

Це версії цього скрипту, де код був змінений. Показати всі версії.

  • v1.1.4 21.12.2024

    support iframe.srcdoc (excluding optional doctype declaration and top-level elements that are not included in the HTML tag)

  • v1.1.3.13 20.12.2024

    pass spanNode.outerHTML instead just spanNode

  • v1.1.3.12 20.12.2024

    indentation fix

  • v1.1.3.12 20.12.2024

    fixed bug that attempted to use the postMessage API when the url does not have an origin
    this caused getIframeContent to fail and makes the timeout checking redundant

  • v1.1.3.11 20.12.2024

    the debugAlert s showed that getUrlOrigin returned a null value. getUrlOrigin changed to give an error if that happens

  • v1.1.3.10 20.12.2024

    more debugAlert statements to find out what causes a promise rejection after using getIframeContent

  • v1.1.3.9 20.12.2024

    change spanNode(className, innerTextOrText) to automatically convert strings to text nodes and append text nodes instead of writing innerText

  • v1.1.3.8 20.12.2024

    use Node.nodeType instead of instanceof Text because that doesnt always work

  • v1.1.3.7 20.12.2024

    convert multi-line comments to single line comments so that webkit-based browsers report the correct line number in the error stack
    move some parts into functions for clearer control flow

  • v1.1.3.6 19.12.2024

    get better error details. not all error properties, including the message and error type are iterable

  • v1.1.3.5 19.12.2024

    try catch in window.WEB_INSPECTOR assignment failed, so use a function instead

  • v1.1.3.4 19.12.2024

    make sure errors get passed up correctly

  • v1.1.3.3 19.12.2024

    make sure errors get passed up correctly

  • v1.1.3.2 19.12.2024

    make sure error passed up correctly

  • v1.1.3.1 19.12.2024

    make sure errors are correctly passed up

  • v1.1.3 19.12.2024

    make sure errors get correctly passed up, more error info

  • v1.1.2.10 19.12.2024

    Promise.race([]).then was not called in the timeout case. this changes that hopefully

  • v1.1.2.9 19.12.2024

    incorrect resolve got called in last update

  • v1.1.2.8 19.12.2024

    previous update didnt fix timeout issue correctly, hopefully this one does

  • v1.1.2.7 19.12.2024

    correctly deal with timeout issue when trying to get iframe content. await Promise.race would wait for all promises to be resolved or rejected. that caused the userscript to not work correctly on safari mobile

  • v1.1.2.6 19.12.2024

    move code for getting iframe content into its own function
    remove message event from window if timeout reached

  • v1.1.2.5 18.12.2024

    add timeout of 5 seconds to getting iframe content encase of postMessage not responding

  • v1.1.2.4 18.12.2024

    better to use event.origin rather than passing it in the message

  • v1.1.2.3 18.12.2024

    try to make postMessage communicate back to top on safari mobile

  • v1.1.2.2 18.12.2024

    remove checking event.origin when self is not top because top.location.href and top.location.toString() fail silently on safari mobile. using event.source === top is fine

  • v1.1.2.1 18.12.2024

    make sure all outputted text can be read. use red for errors. add debugAlert function to find out why it doesnt currently work on safari on mobile

  • v1.1.2 17.12.2024

    add missing semicolons

  • v1.1.2 17.12.2024

    bug fix for previous bug fix

  • v1.1.1 17.12.2024

    display error message if iframe content cannot be retrieved

  • v1.1 17.12.2024

    correctly get html iframe tag content
    automatically collapse all collapsible html tags, unless they have less than 1 child (for performance reasons)

  • v1.0.8 16.12.2024

    fix error while trying to inspect iframe content. better error message.

  • v1.0.7 16.12.2024

    add error handeling

  • v1.0.6 16.12.2024

    show content of iframe and similar elements. they are now automatically collapsed

  • v1.0.5 16.12.2024

    put ending } in css on new line. before only declarations and @media had the new line in css

  • v1.0.4 15.12.2024

    clickable links open in new tab/window by default now instead of same tab/window

  • v1.0.3 15.12.2024

    add outline to css-color-preview (using the css invert function) to give better contrast

  • v1.0.2 15.12.2024

    made

  • v1.0.1 15.12.2024

    fixed sandboxing issue when trying to open a new tab/window to display web inspector
    more accurate html nodeType detection

  • v1 15.12.2024