Web Inspector

Allows you to inspect web pages

这是此脚本的所有版本。 只显示代码更新过的版本

  • v1.1.4 2024-12-21

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

  • v1.1.3.13 2024-12-20

    pass spanNode.outerHTML instead just spanNode

  • v1.1.3.12 2024-12-20

    indentation fix

  • v1.1.3.12 2024-12-20

    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 2024-12-20

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

  • v1.1.3.10 2024-12-20

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

  • v1.1.3.9 2024-12-20

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

  • v1.1.3.8 2024-12-20

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

  • v1.1.3.7 2024-12-20

    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 2024-12-19

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

  • v1.1.3.5 2024-12-19

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

  • v1.1.3.4 2024-12-19

    make sure errors get passed up correctly

  • v1.1.3.3 2024-12-19

    make sure errors get passed up correctly

  • v1.1.3.2 2024-12-19

    make sure error passed up correctly

  • v1.1.3.1 2024-12-19

    make sure errors are correctly passed up

  • v1.1.3 2024-12-19

    make sure errors get correctly passed up, more error info

  • v1.1.2.10 2024-12-19

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

  • v1.1.2.9 2024-12-19

    incorrect resolve got called in last update

  • v1.1.2.8 2024-12-19

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

  • v1.1.2.7 2024-12-19

    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 2024-12-19

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

  • v1.1.2.5 2024-12-18

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

  • v1.1.2.4 2024-12-18

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

  • v1.1.2.3 2024-12-18

    try to make postMessage communicate back to top on safari mobile

  • v1.1.2.2 2024-12-18

    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 2024-12-18

    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 2024-12-17

    add missing semicolons

  • v1.1.2 2024-12-17

    bug fix for previous bug fix

  • v1.1.1 2024-12-17

    display error message if iframe content cannot be retrieved

  • v1.1 2024-12-17

    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 2024-12-16

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

  • v1.0.7 2024-12-16

    add error handeling

  • v1.0.6 2024-12-16

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

  • v1.0.5 2024-12-16

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

  • v1.0.4 2024-12-15

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

  • v1.0.3 2024-12-15

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

  • v1.0.2 2024-12-15

    made

  • v1.0.1 2024-12-15

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

  • v1 2024-12-15