diff --git a/microsoft-edge/accessibility/test.md b/microsoft-edge/accessibility/test.md index 71b65e84f3..58df110679 100644 --- a/microsoft-edge/accessibility/test.md +++ b/microsoft-edge/accessibility/test.md @@ -55,16 +55,6 @@ Automated tools can't find all the accessibility problems of a website, because You can also use the assessment feature of [Accessibility Insights](https://accessibilityinsights.io) to measure your website's compliance with the [Web Content Accessibility Guidelines (WCAG) 2.2 Level AA](https://www.w3.org/WAI/WCAG22/quickref/?versions=2.2&levels=aaa) success criteria. To learn more, see [Assessment in Accessibility Insights for Web](https://accessibilityinsights.io/docs/en/web/getstarted/assessment/). - -## External articles and websites - -* [Assistive technology compatibility tests](http://www.powermapper.com/tests) - Test results showing how different content types and standards behave in assistive technologies (AT) such as screen readers. - -* [HTML5Accessibility](https://html5accessibility.com) - This site tests which new HTML5 features are accessibly supported by major browsers. - -* [Web Accessibility Evaluation Tools List](https://www.w3.org/WAI/ER/tools/index.html) - A list of web accessibility evaluation tools to help determine if websites meet accessibility guidelines. - - ## The Web Accessibility Initiative (WAI) diff --git a/microsoft-edge/dev-videos/index-images/the-network-tool-thumbnail.png b/microsoft-edge/dev-videos/index-images/the-network-tool-thumbnail.png deleted file mode 100644 index 1e0ac27d4e..0000000000 Binary files a/microsoft-edge/dev-videos/index-images/the-network-tool-thumbnail.png and /dev/null differ diff --git a/microsoft-edge/devtools/about-tools-images/more-tabs-icon-light-theme.png b/microsoft-edge/devtools/about-tools-images/more-tabs-icon-light-theme.png deleted file mode 100644 index 9ecaa5aca4..0000000000 Binary files a/microsoft-edge/devtools/about-tools-images/more-tabs-icon-light-theme.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-issues.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-issues.png deleted file mode 100644 index 9f8671c49b..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-issues.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-tree.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-tree.png deleted file mode 100644 index 0d90b609b6..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-accessibility-tree.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-demopage.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-demopage.png deleted file mode 100644 index 3eb178bb1a..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-demopage.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-donation-form-issue.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-donation-form-issue.png deleted file mode 100644 index 768c6f71fc..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-donation-form-issue.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-overlay.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-overlay.png deleted file mode 100644 index 1a465bfc81..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-overlay.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-selected-element.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-selected-element.png deleted file mode 100644 index f1552da0e6..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector-selected-element.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector.png deleted file mode 100644 index 75b1136a7e..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-basics-inspector.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-contrast-issues.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-contrast-issues.png deleted file mode 100644 index cddd9c695b..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-contrast-issues.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-button-info.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-button-info.png deleted file mode 100644 index 39ea5f5b47..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-button-info.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-state-light-contrast.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-state-light-contrast.png deleted file mode 100644 index 66a78b8ad4..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-donation-state-light-contrast.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-element-with-contrast-issues.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-element-with-contrast-issues.png deleted file mode 100644 index 0b144fa882..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-element-with-contrast-issues.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-enough-contrast.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-enough-contrast.png deleted file mode 100644 index 86848d24a3..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-enough-contrast.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-event-handlers-on-button.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-event-handlers-on-button.png deleted file mode 100644 index de5c24c598..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-event-handlers-on-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-field-with-outline.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-field-with-outline.png deleted file mode 100644 index 4d6dddbfe6..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-field-with-outline.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-handling-javascript.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-handling-javascript.png deleted file mode 100644 index ddbc5bb3b8..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-form-handling-javascript.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-contrast-testing.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-contrast-testing.png deleted file mode 100644 index 7a15fdd48d..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-contrast-testing.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-simulated.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-simulated.png deleted file mode 100644 index 13e002eb44..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover-simulated.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover.png deleted file mode 100644 index 4521cdde3c..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-hover.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-images-without-alt.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-images-without-alt.png deleted file mode 100644 index 09a56ecac1..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-images-without-alt.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspect-problematic-element.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspect-problematic-element.png deleted file mode 100644 index 0c4b0a1039..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspect-problematic-element.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspecting-link-to-hover.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspecting-link-to-hover.png deleted file mode 100644 index a9df18d9ea..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-inspecting-link-to-hover.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-issues-tracker.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-issues-tracker.png deleted file mode 100644 index fcae9a0c08..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-issues-tracker.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-keyboard-focus-on-element.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-keyboard-focus-on-element.png deleted file mode 100644 index ec70799aed..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-keyboard-focus-on-element.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-lack-of-focus-style.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-lack-of-focus-style.png deleted file mode 100644 index d9a6594ff2..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-lack-of-focus-style.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link-styles.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link-styles.png deleted file mode 100644 index 1cc8362398..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link-styles.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link.png deleted file mode 100644 index 6d3c732765..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-link.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-with-outline.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-with-outline.png deleted file mode 100644 index 44bdbd507c..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-menu-with-outline.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-more-information-links.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-more-information-links.png deleted file mode 100644 index c74030b965..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-more-information-links.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-new-contrast-issues-in-light-mode.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-new-contrast-issues-in-light-mode.png deleted file mode 100644 index 5b519a49a7..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-new-contrast-issues-in-light-mode.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-not-enough-contrast.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-not-enough-contrast.png deleted file mode 100644 index e11e9edb2f..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-not-enough-contrast.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-blur.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-blur.png deleted file mode 100644 index fb9998f5a1..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-blur.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-protanopia.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-protanopia.png deleted file mode 100644 index 29c2435c4d..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-protanopia.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-reduced-motion.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-reduced-motion.png deleted file mode 100644 index d36fd72aec..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-simulating-reduced-motion.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-source-order-viewer.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-source-order-viewer.png deleted file mode 100644 index f8961de537..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-source-order-viewer.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-state-simulation.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-state-simulation.png deleted file mode 100644 index fa76ff62ee..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-state-simulation.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-wavy-underlines.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-wavy-underlines.png deleted file mode 100644 index c9f56ed3ce..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-wavy-underlines.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-webhint-in-vs-code.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-webhint-in-vs-code.png deleted file mode 100644 index 8bf51df6b8..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/a11y-testing-webhint-in-vs-code.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/grid-icon.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/grid-icon.png deleted file mode 100644 index ab252ba4a5..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/grid-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-flexbox-overlay.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-flexbox-overlay.png deleted file mode 100644 index a32731dbed..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-flexbox-overlay.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-icon-light-theme.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-icon-light-theme.png deleted file mode 100644 index b1b6a3a0b1..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/inspect-tool-icon-light-theme.png and /dev/null differ diff --git a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/issues-counter-icon.png b/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/issues-counter-icon.png deleted file mode 100644 index e73946cf48..0000000000 Binary files a/microsoft-edge/devtools/accessibility/accessibility-testing-in-devtools-images/issues-counter-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/console/reference-images/console-dom-level-multiple.png b/microsoft-edge/devtools/console/reference-images/console-dom-level-multiple.png deleted file mode 100644 index 96205b70d7..0000000000 Binary files a/microsoft-edge/devtools/console/reference-images/console-dom-level-multiple.png and /dev/null differ diff --git a/microsoft-edge/devtools/console/reference-images/console-filter-text.png b/microsoft-edge/devtools/console/reference-images/console-filter-text.png deleted file mode 100644 index b18276987c..0000000000 Binary files a/microsoft-edge/devtools/console/reference-images/console-filter-text.png and /dev/null differ diff --git a/microsoft-edge/devtools/console/reference-images/console-negative-filter-text.png b/microsoft-edge/devtools/console/reference-images/console-negative-filter-text.png deleted file mode 100644 index aafafe2e89..0000000000 Binary files a/microsoft-edge/devtools/console/reference-images/console-negative-filter-text.png and /dev/null differ diff --git a/microsoft-edge/devtools/console/reference-images/console-sidebar-warnings.png b/microsoft-edge/devtools/console/reference-images/console-sidebar-warnings.png deleted file mode 100644 index e3ff31196f..0000000000 Binary files a/microsoft-edge/devtools/console/reference-images/console-sidebar-warnings.png and /dev/null differ diff --git a/microsoft-edge/devtools/css/reference-images/easing-editor-changes.png b/microsoft-edge/devtools/css/reference-images/easing-editor-changes.png deleted file mode 100644 index 19739d5d70..0000000000 Binary files a/microsoft-edge/devtools/css/reference-images/easing-editor-changes.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/all-devtools-themes.png b/microsoft-edge/devtools/customize/theme-images/all-devtools-themes.png deleted file mode 100644 index 4c4337c824..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/all-devtools-themes.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/command-menu.png b/microsoft-edge/devtools/customize/theme-images/command-menu.png deleted file mode 100644 index 821699a38f..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/command-menu.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/customize-icon.png b/microsoft-edge/devtools/customize/theme-images/customize-icon.png deleted file mode 100644 index 474fd25942..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/customize-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/setting-button.png b/microsoft-edge/devtools/customize/theme-images/setting-button.png deleted file mode 100644 index 8be6179714..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/setting-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/setting.png b/microsoft-edge/devtools/customize/theme-images/setting.png deleted file mode 100644 index 85139b44ac..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/setting.png and /dev/null differ diff --git a/microsoft-edge/devtools/customize/theme-images/settings-icon.png b/microsoft-edge/devtools/customize/theme-images/settings-icon.png deleted file mode 100644 index a2e6d98851..0000000000 Binary files a/microsoft-edge/devtools/customize/theme-images/settings-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/accessibility-tree-view.png b/microsoft-edge/devtools/experimental-features/index-images/accessibility-tree-view.png deleted file mode 100644 index 3949733aaa..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/accessibility-tree-view.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/autofill-tool.png b/microsoft-edge/devtools/experimental-features/index-images/autofill-tool.png deleted file mode 100644 index bca484c5cf..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/autofill-tool.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/context-menu-modify-flame-chart-trees.png b/microsoft-edge/devtools/experimental-features/index-images/context-menu-modify-flame-chart-trees.png deleted file mode 100644 index bca84c2414..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/context-menu-modify-flame-chart-trees.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/csp-violations-tool.png b/microsoft-edge/devtools/experimental-features/index-images/csp-violations-tool.png deleted file mode 100644 index 87ce399d60..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/csp-violations-tool.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/dock-quick-view-to-the-right-icon.png b/microsoft-edge/devtools/experimental-features/index-images/dock-quick-view-to-the-right-icon.png deleted file mode 100644 index 3cf341815f..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/dock-quick-view-to-the-right-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/elements-tool-w-button.png b/microsoft-edge/devtools/experimental-features/index-images/elements-tool-w-button.png deleted file mode 100644 index 2422ae9ffb..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/elements-tool-w-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/elements-tool-wo-button.png b/microsoft-edge/devtools/experimental-features/index-images/elements-tool-wo-button.png deleted file mode 100644 index 3bfff8bccd..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/elements-tool-wo-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/experiments-webhint.png b/microsoft-edge/devtools/experimental-features/index-images/experiments-webhint.png deleted file mode 100644 index 90c068a170..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/experiments-webhint.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/eyedropper-color-picker-icon.png b/microsoft-edge/devtools/experimental-features/index-images/eyedropper-color-picker-icon.png deleted file mode 100644 index af277c1ef1..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/eyedropper-color-picker-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/font-editor-open.png b/microsoft-edge/devtools/experimental-features/index-images/font-editor-open.png deleted file mode 100644 index 527dd9c959..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/font-editor-open.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/help-icon.png b/microsoft-edge/devtools/experimental-features/index-images/help-icon.png deleted file mode 100644 index 7335a3be3b..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/help-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/indentation-markers.png b/microsoft-edge/devtools/experimental-features/index-images/indentation-markers.png deleted file mode 100644 index 8a6dff952a..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/indentation-markers.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/more-tabs-icon-light-theme.png b/microsoft-edge/devtools/experimental-features/index-images/more-tabs-icon-light-theme.png deleted file mode 100644 index 9ecaa5aca4..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/more-tabs-icon-light-theme.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/more-tools-icon-light-theme.png b/microsoft-edge/devtools/experimental-features/index-images/more-tools-icon-light-theme.png deleted file mode 100644 index 71ff8ed5a2..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/more-tools-icon-light-theme.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-orig.png b/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-orig.png deleted file mode 100644 index 6e80275cd6..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-orig.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-redesigned.png b/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-redesigned.png deleted file mode 100644 index 140082f5db..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/network-filter-bar-redesigned.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-classic.png b/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-classic.png deleted file mode 100644 index ad2213adee..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-classic.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-modern.png b/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-modern.png deleted file mode 100644 index f182eac6c4..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/perf-nav-keyboard-shortcuts-modern.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/performance-panel-enable-annotations.png b/microsoft-edge/devtools/experimental-features/index-images/performance-panel-enable-annotations.png deleted file mode 100644 index 1dddcfb98c..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/performance-panel-enable-annotations.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/post-message-events-arrows.png b/microsoft-edge/devtools/experimental-features/index-images/post-message-events-arrows.png deleted file mode 100644 index 3d55d7d93b..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/post-message-events-arrows.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/post-message-events.png b/microsoft-edge/devtools/experimental-features/index-images/post-message-events.png deleted file mode 100644 index 88e0097512..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/post-message-events.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/show-shortcuts-icon.png b/microsoft-edge/devtools/experimental-features/index-images/show-shortcuts-icon.png deleted file mode 100644 index c0f795b808..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/show-shortcuts-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/speculative-loads-page.png b/microsoft-edge/devtools/experimental-features/index-images/speculative-loads-page.png deleted file mode 100644 index cc97e3d4cc..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/speculative-loads-page.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/stack-trace-tab.png b/microsoft-edge/devtools/experimental-features/index-images/stack-trace-tab.png deleted file mode 100644 index b1d8fc427d..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/stack-trace-tab.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/timing-breadcrumbs-path.png b/microsoft-edge/devtools/experimental-features/index-images/timing-breadcrumbs-path.png deleted file mode 100644 index c539e3577b..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/timing-breadcrumbs-path.png and /dev/null differ diff --git a/microsoft-edge/devtools/experimental-features/index-images/track-configuration.png b/microsoft-edge/devtools/experimental-features/index-images/track-configuration.png deleted file mode 100644 index 7e54a208a8..0000000000 Binary files a/microsoft-edge/devtools/experimental-features/index-images/track-configuration.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/animations-images/animations-selected-completed-elements.png b/microsoft-edge/devtools/inspect-styles/animations-images/animations-selected-completed-elements.png deleted file mode 100644 index 5db44037fe..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/animations-images/animations-selected-completed-elements.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/experimental-tag.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/experimental-tag.png deleted file mode 100644 index e12311a4e4..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/experimental-tag.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-converted-to-em.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-converted-to-em.png deleted file mode 100644 index bd757bf3d7..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-converted-to-em.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-css-properties.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-css-properties.png deleted file mode 100644 index 344f8705f3..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-css-properties.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family-list.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family-list.png deleted file mode 100644 index d570eb337a..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family-list.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family.png deleted file mode 100644 index eeaf9b1cf1..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-font-family.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-icon.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-icon.png deleted file mode 100644 index 7f545f16ce..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-open.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-open.png deleted file mode 100644 index b9ff61b448..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-open.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-preset-font-sizes.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-preset-font-sizes.png deleted file mode 100644 index 1ac88ad174..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-preset-font-sizes.png and /dev/null differ diff --git a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-setting-to-16px.png b/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-setting-to-16px.png deleted file mode 100644 index d49f1ebfe6..0000000000 Binary files a/microsoft-edge/devtools/inspect-styles/edit-fonts-images/font-editor-setting-to-16px.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/after-click-detach-elements.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/after-click-detach-elements.png deleted file mode 100644 index 7ce20a649d..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/after-click-detach-elements.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-detached-elements.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-detached-elements.png deleted file mode 100644 index 847c8ff3e9..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-detached-elements.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-icon.png deleted file mode 100644 index 822fb1a25f..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/analyze-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/collect-garbage-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/collect-garbage-icon.png deleted file mode 100644 index 74fc1982f9..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/collect-garbage-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/demo-app.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/demo-app.png deleted file mode 100644 index a5b70842cc..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/demo-app.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detach-elements-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/detach-elements-icon.png deleted file mode 100644 index 72ee1edef8..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detach-elements-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool-icon.png deleted file mode 100644 index e9e1eba73d..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool.png deleted file mode 100644 index 26ec7ffdc4..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/detached-elements-tool.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements-icon.png deleted file mode 100644 index c8816a217c..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements.png deleted file mode 100644 index 201141fe93..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/get-detached-elements.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/heap-snapshot.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/heap-snapshot.png deleted file mode 100644 index 7846c3fa7e..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/heap-snapshot.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/javascript-retainers.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/javascript-retainers.png deleted file mode 100644 index 8ca6d7e2f7..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/javascript-retainers.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/more-tools-icon.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/more-tools-icon.png deleted file mode 100644 index 71ff8ed5a2..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/more-tools-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/open-detached-elements.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/open-detached-elements.png deleted file mode 100644 index 47339a0129..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/open-detached-elements.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/remove-links.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/remove-links.png deleted file mode 100644 index 98dc763c38..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/remove-links.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-2-initial-view.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-2-initial-view.png deleted file mode 100644 index 6cc7d60773..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-2-initial-view.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-js-line-13.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-js-line-13.png deleted file mode 100644 index 5fa8f764e0..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/room-js-line-13.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/dom-leaks-images/target-dropdown.png b/microsoft-edge/devtools/memory-problems/dom-leaks-images/target-dropdown.png deleted file mode 100644 index 5d9fbdf44e..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/dom-leaks-images/target-dropdown.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/index-images/collect-garbage-icon.png b/microsoft-edge/devtools/memory-problems/index-images/collect-garbage-icon.png deleted file mode 100644 index a65767dbc7..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/index-images/collect-garbage-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/memory-problems/index-images/stop-recording-icon.png b/microsoft-edge/devtools/memory-problems/index-images/stop-recording-icon.png deleted file mode 100644 index f6de64a490..0000000000 Binary files a/microsoft-edge/devtools/memory-problems/index-images/stop-recording-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/network/reference-images/sw-network-timeline.png b/microsoft-edge/devtools/network/reference-images/sw-network-timeline.png deleted file mode 100644 index 63a42eddc8..0000000000 Binary files a/microsoft-edge/devtools/network/reference-images/sw-network-timeline.png and /dev/null differ diff --git a/microsoft-edge/devtools/overview-images/more-tabs-icon-light-theme.png b/microsoft-edge/devtools/overview-images/more-tabs-icon-light-theme.png deleted file mode 100644 index 9ecaa5aca4..0000000000 Binary files a/microsoft-edge/devtools/overview-images/more-tabs-icon-light-theme.png and /dev/null differ diff --git a/microsoft-edge/devtools/performance/index-images/send-feedback-icon.png b/microsoft-edge/devtools/performance/index-images/send-feedback-icon.png deleted file mode 100644 index f95255865f..0000000000 Binary files a/microsoft-edge/devtools/performance/index-images/send-feedback-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/performance/overview-images/field-data-advanced-mapping.png b/microsoft-edge/devtools/performance/overview-images/field-data-advanced-mapping.png deleted file mode 100644 index bab9d269a4..0000000000 Binary files a/microsoft-edge/devtools/performance/overview-images/field-data-advanced-mapping.png and /dev/null differ diff --git a/microsoft-edge/devtools/performance/overview-images/save-profile-icon.png b/microsoft-edge/devtools/performance/overview-images/save-profile-icon.png deleted file mode 100644 index f790ae6869..0000000000 Binary files a/microsoft-edge/devtools/performance/overview-images/save-profile-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/progressive-web-apps/index-images/app-available-install-button.png b/microsoft-edge/devtools/progressive-web-apps/index-images/app-available-install-button.png deleted file mode 100644 index 6d19cd1486..0000000000 Binary files a/microsoft-edge/devtools/progressive-web-apps/index-images/app-available-install-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/progressive-web-apps/index-images/three-dot-menu.png b/microsoft-edge/devtools/progressive-web-apps/index-images/three-dot-menu.png deleted file mode 100644 index d3ca16d0b4..0000000000 Binary files a/microsoft-edge/devtools/progressive-web-apps/index-images/three-dot-menu.png and /dev/null differ diff --git a/microsoft-edge/devtools/quick-source/quick-source-tool-images/file-displayed-in-quick-source-2.png b/microsoft-edge/devtools/quick-source/quick-source-tool-images/file-displayed-in-quick-source-2.png deleted file mode 100644 index cea50c964f..0000000000 Binary files a/microsoft-edge/devtools/quick-source/quick-source-tool-images/file-displayed-in-quick-source-2.png and /dev/null differ diff --git a/microsoft-edge/devtools/recorder/index-images/recordings-dropdown.png b/microsoft-edge/devtools/recorder/index-images/recordings-dropdown.png deleted file mode 100644 index 83d61237c8..0000000000 Binary files a/microsoft-edge/devtools/recorder/index-images/recordings-dropdown.png and /dev/null differ diff --git a/microsoft-edge/devtools/samples/index-images/workspace-localhost.png b/microsoft-edge/devtools/samples/index-images/workspace-localhost.png deleted file mode 100644 index 35b99e2589..0000000000 Binary files a/microsoft-edge/devtools/samples/index-images/workspace-localhost.png and /dev/null differ diff --git a/microsoft-edge/devtools/sources/index-images/pretty-printed.png b/microsoft-edge/devtools/sources/index-images/pretty-printed.png deleted file mode 100644 index 43d78ab468..0000000000 Binary files a/microsoft-edge/devtools/sources/index-images/pretty-printed.png and /dev/null differ diff --git a/microsoft-edge/devtools/sources/index-images/workspace-localhost.png b/microsoft-edge/devtools/sources/index-images/workspace-localhost.png deleted file mode 100644 index 35b99e2589..0000000000 Binary files a/microsoft-edge/devtools/sources/index-images/workspace-localhost.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/cookies-images/customize-and-control-devtools-icon.png b/microsoft-edge/devtools/storage/cookies-images/customize-and-control-devtools-icon.png deleted file mode 100644 index da26f09442..0000000000 Binary files a/microsoft-edge/devtools/storage/cookies-images/customize-and-control-devtools-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/cookies-images/more-tools-icon.png b/microsoft-edge/devtools/storage/cookies-images/more-tools-icon.png deleted file mode 100644 index 71ff8ed5a2..0000000000 Binary files a/microsoft-edge/devtools/storage/cookies-images/more-tools-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/refresh-icon.png b/microsoft-edge/devtools/storage/websql-images/refresh-icon.png deleted file mode 100644 index 7c36ab9457..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/refresh-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-clear-site-data-button.png b/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-clear-site-data-button.png deleted file mode 100644 index 6979baba15..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-clear-site-data-button.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-web-sql.png b/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-web-sql.png deleted file mode 100644 index cd435bca73..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-clear-storage-web-sql.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-manifest.png b/microsoft-edge/devtools/storage/websql-images/storage-application-manifest.png deleted file mode 100644 index dcc56b896b..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-manifest.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-commands.png b/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-commands.png deleted file mode 100644 index 23c408a217..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-commands.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-1.png b/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-1.png deleted file mode 100644 index d5ef01cb06..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-1.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-2.png b/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-2.png deleted file mode 100644 index 82a7323251..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql-html5meetup-rooms-2.png and /dev/null differ diff --git a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql.png b/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql.png deleted file mode 100644 index 25381c2f45..0000000000 Binary files a/microsoft-edge/devtools/storage/websql-images/storage-application-storage-web-sql.png and /dev/null differ diff --git a/microsoft-edge/devtools/whats-new/2023/10/devtools-118-images/no-throttling.png b/microsoft-edge/devtools/whats-new/2023/10/devtools-118-images/no-throttling.png deleted file mode 100644 index 32432d6bbe..0000000000 Binary files a/microsoft-edge/devtools/whats-new/2023/10/devtools-118-images/no-throttling.png and /dev/null differ diff --git a/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/refresh-coverage-icon.png b/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/refresh-coverage-icon.png deleted file mode 100644 index d7d5b7dc36..0000000000 Binary files a/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/refresh-coverage-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/settings-icon.png b/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/settings-icon.png deleted file mode 100644 index 7e667bdd84..0000000000 Binary files a/microsoft-edge/devtools/whats-new/2024/01/devtools-121-images/settings-icon.png and /dev/null differ diff --git a/microsoft-edge/devtools/workspaces/workspace-tutorial-images/quick-source-script-js.png b/microsoft-edge/devtools/workspaces/workspace-tutorial-images/quick-source-script-js.png deleted file mode 100644 index 9b3649ea44..0000000000 Binary files a/microsoft-edge/devtools/workspaces/workspace-tutorial-images/quick-source-script-js.png and /dev/null differ diff --git a/microsoft-edge/extensions/getting-started/index-images/index-image1-browsertabs.png b/microsoft-edge/extensions/getting-started/architecture-images/index-image1-browsertabs.png similarity index 100% rename from microsoft-edge/extensions/getting-started/index-images/index-image1-browsertabs.png rename to microsoft-edge/extensions/getting-started/architecture-images/index-image1-browsertabs.png diff --git a/microsoft-edge/extensions/getting-started/index-images/index-image3-upsidedown.png b/microsoft-edge/extensions/getting-started/architecture-images/index-image3-upsidedown.png similarity index 100% rename from microsoft-edge/extensions/getting-started/index-images/index-image3-upsidedown.png rename to microsoft-edge/extensions/getting-started/architecture-images/index-image3-upsidedown.png diff --git a/microsoft-edge/extensions/getting-started/architecture.md b/microsoft-edge/extensions/getting-started/architecture.md index 007f11b094..33606734ed 100644 --- a/microsoft-edge/extensions/getting-started/architecture.md +++ b/microsoft-edge/extensions/getting-started/architecture.md @@ -42,7 +42,7 @@ The following list outlines helpful information to understand before building yo Each browser tab is isolated from every other tab. Each tab runs in a separate thread that is isolated from other browser tabs and threads. -![One thread per browser tab](./index-images/index-image1-browsertabs.png) +![One thread per browser tab](./architecture-images/index-image1-browsertabs.png) @@ -62,7 +62,7 @@ Communication occurs between each tab and a remote server. Each tab runs in an The extension model uses a different communication model. Similar to a tab page, an extension runs in an individual thread that is isolated from other tab page threads. A tab sends single GET requests to remote servers, and then renders the page. However, an extension works similar to a remote server. Installing an extension in a browser creates a standalone web server in the browser. The extension is isolated from all tab pages. -![Extensions use a different communication model](./index-images/index-image3-upsidedown.png) +![Extensions use a different communication model](./architecture-images/index-image3-upsidedown.png) diff --git a/microsoft-edge/extensions/publish/create-dev-account-images/country-region-long-url.png b/microsoft-edge/extensions/publish/create-dev-account-images/country-region-long-url.png deleted file mode 100644 index 3124ab4955..0000000000 Binary files a/microsoft-edge/extensions/publish/create-dev-account-images/country-region-long-url.png and /dev/null differ diff --git a/microsoft-edge/privacy-whitepaper/index-images/delete-history-for-a-search-suggestion.png b/microsoft-edge/privacy-whitepaper/index-images/delete-history-for-a-search-suggestion.png deleted file mode 100644 index dd78d36e56..0000000000 Binary files a/microsoft-edge/privacy-whitepaper/index-images/delete-history-for-a-search-suggestion.png and /dev/null differ diff --git a/microsoft-edge/privacy-whitepaper/index-images/search-suggestions-typed-chars.png b/microsoft-edge/privacy-whitepaper/index-images/search-suggestions-typed-chars.png deleted file mode 100644 index 56f8d1d04e..0000000000 Binary files a/microsoft-edge/privacy-whitepaper/index-images/search-suggestions-typed-chars.png and /dev/null differ diff --git a/microsoft-edge/privacy-whitepaper/index-images/settings-and-more-icon.png b/microsoft-edge/privacy-whitepaper/index-images/settings-and-more-icon.png deleted file mode 100644 index 50748de6e5..0000000000 Binary files a/microsoft-edge/privacy-whitepaper/index-images/settings-and-more-icon.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-allow-file-handling.png b/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-allow-file-handling.png deleted file mode 100644 index caa68e7823..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-allow-file-handling.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-new-file.png b/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-new-file.png deleted file mode 100644 index 5d0db89e15..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/handle-files-images/my-tracks-new-file.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/app-available-icon.png b/microsoft-edge/progressive-web-apps/how-to/index-images/app-available-icon.png deleted file mode 100644 index 563fe3bf4d..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/app-available-icon.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/app-installed-dialog.png b/microsoft-edge/progressive-web-apps/how-to/index-images/app-installed-dialog.png deleted file mode 100644 index dfce00f221..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/app-installed-dialog.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-cache.png b/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-cache.png deleted file mode 100644 index 266e3d6953..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-cache.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-offline.png b/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-offline.png deleted file mode 100644 index 69d1ab91a4..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-offline.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-sw-overview.png b/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-sw-overview.png deleted file mode 100644 index 02c7b5ba3d..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/devtools-sw-overview.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/icon-in-taskbar.png b/microsoft-edge/progressive-web-apps/how-to/index-images/icon-in-taskbar.png deleted file mode 100644 index c85a7475bb..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/icon-in-taskbar.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/icon512.png b/microsoft-edge/progressive-web-apps/how-to/index-images/icon512.png deleted file mode 100644 index 3f46c9d485..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/icon512.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/initial-app.png b/microsoft-edge/progressive-web-apps/how-to/index-images/initial-app.png deleted file mode 100644 index 55da0401e0..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/initial-app.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-app-available-button.png b/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-app-available-button.png deleted file mode 100644 index 8a7a1e797d..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-app-available-button.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-installed.png b/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-installed.png deleted file mode 100644 index 21ee1f8490..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/index-images/sample-pwa-installed.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/origin-trials-images/turn-on-experimental-flag.png b/microsoft-edge/progressive-web-apps/how-to/origin-trials-images/turn-on-experimental-flag.png deleted file mode 100644 index da85ae74d6..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/origin-trials-images/turn-on-experimental-flag.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/service-workers-images/sw-architecture.png b/microsoft-edge/progressive-web-apps/how-to/service-workers-images/sw-architecture.png deleted file mode 100644 index 1b9f0f4648..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/service-workers-images/sw-architecture.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/how-to/widgets-images/experimental-tag.png b/microsoft-edge/progressive-web-apps/how-to/widgets-images/experimental-tag.png deleted file mode 100644 index e12311a4e4..0000000000 Binary files a/microsoft-edge/progressive-web-apps/how-to/widgets-images/experimental-tag.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-cache-storage-web-app.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-cache-storage-web-app.png deleted file mode 100644 index 266e3d6953..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-cache-storage-web-app.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-service-workers-web-app.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-service-workers-web-app.png deleted file mode 100644 index e88f84ddfd..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/devtools-service-workers-web-app.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/initial-app.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/initial-app.png deleted file mode 100644 index 55da0401e0..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/initial-app.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/pwa-architecture.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/pwa-architecture.png deleted file mode 100644 index 0e13185094..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/pwa-architecture.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/sample-pwa-app-with-frontend-code.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/sample-pwa-app-with-frontend-code.png deleted file mode 100644 index c144bc78e7..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/sample-pwa-app-with-frontend-code.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-front-end-files.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-front-end-files.png deleted file mode 100644 index efa1dd00da..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-front-end-files.png and /dev/null differ diff --git a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-manifest.png b/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-manifest.png deleted file mode 100644 index c3bd55c1f0..0000000000 Binary files a/microsoft-edge/progressive-web-apps/samples/temperature-converter-images/visual-studio-project-with-manifest.png and /dev/null differ diff --git a/microsoft-edge/web-platform/ad-selection-api-images/reg-form.png b/microsoft-edge/web-platform/ad-selection-api-images/reg-form.png deleted file mode 100644 index 593c2ad348..0000000000 Binary files a/microsoft-edge/web-platform/ad-selection-api-images/reg-form.png and /dev/null differ diff --git a/microsoft-edge/web-platform/languagedetector-api-images/flags-language-detector-api.png b/microsoft-edge/web-platform/languagedetector-api-images/flags-language-detector-api.png deleted file mode 100644 index 128cf41fd3..0000000000 Binary files a/microsoft-edge/web-platform/languagedetector-api-images/flags-language-detector-api.png and /dev/null differ diff --git a/microsoft-edge/web-platform/translator-api-images/flags-translator-api.png b/microsoft-edge/web-platform/translator-api-images/flags-translator-api.png deleted file mode 100644 index 7489ca07a6..0000000000 Binary files a/microsoft-edge/web-platform/translator-api-images/flags-translator-api.png and /dev/null differ diff --git a/microsoft-edge/webview2/how-to/set-preview-channel-images/browser-executable-folder.png b/microsoft-edge/webview2/how-to/set-preview-channel-images/browser-executable-folder.png deleted file mode 100644 index c26f1c1922..0000000000 Binary files a/microsoft-edge/webview2/how-to/set-preview-channel-images/browser-executable-folder.png and /dev/null differ diff --git a/microsoft-edge/webview2/how-to/set-preview-channel-images/env-vars-new-user-variable.png b/microsoft-edge/webview2/how-to/set-preview-channel-images/env-vars-new-user-variable.png deleted file mode 100644 index 82573e0aa8..0000000000 Binary files a/microsoft-edge/webview2/how-to/set-preview-channel-images/env-vars-new-user-variable.png and /dev/null differ diff --git a/microsoft-edge/webview2/how-to/set-preview-channel-images/local-group-policy-editor.png b/microsoft-edge/webview2/how-to/set-preview-channel-images/local-group-policy-editor.png deleted file mode 100644 index 202437fcc0..0000000000 Binary files a/microsoft-edge/webview2/how-to/set-preview-channel-images/local-group-policy-editor.png and /dev/null differ diff --git a/microsoft-edge/webview2/how-to/set-preview-channel-images/show-contents.png b/microsoft-edge/webview2/how-to/set-preview-channel-images/show-contents.png deleted file mode 100644 index 129086d0e0..0000000000 Binary files a/microsoft-edge/webview2/how-to/set-preview-channel-images/show-contents.png and /dev/null differ diff --git a/microsoft-edge/webview2/release-notes/about-images/phases-of-adding-apis.png b/microsoft-edge/webview2/release-notes/sdk/index-images/phases-of-adding-apis.png similarity index 100% rename from microsoft-edge/webview2/release-notes/about-images/phases-of-adding-apis.png rename to microsoft-edge/webview2/release-notes/sdk/index-images/phases-of-adding-apis.png diff --git a/microsoft-edge/webview2/release-notes/sdk/index.md b/microsoft-edge/webview2/release-notes/sdk/index.md index daa3caa3d2..f4526f54af 100644 --- a/microsoft-edge/webview2/release-notes/sdk/index.md +++ b/microsoft-edge/webview2/release-notes/sdk/index.md @@ -70,7 +70,7 @@ New APIs are added in three phases, as follows: * Sometimes, APIs are simultaneously promoted to Stable in a Prerelease SDK and Stable in a Release SDK. -![Diagram of phases of introducing new APIs](./../about-images/phases-of-adding-apis.png) +![Diagram of phases of introducing new APIs](./index-images/phases-of-adding-apis.png) Shorthand names of the phases: diff --git a/scripts/find-unused-images.js b/scripts/find-unused-images.js new file mode 100644 index 0000000000..ca92fffcbf --- /dev/null +++ b/scripts/find-unused-images.js @@ -0,0 +1,306 @@ +#!/usr/bin/env node +/** + * find-unused-images.js + * + * Scans the "microsoft-edge" folder for "*-images" folders (each one holding + * the screenshots/pictures used by the article that shares its base name, + * e.g. "focus.md" -> "focus-images/") and detects image files inside them + * that are not referenced from their matching sibling article. + * + * By default this runs in "dry run" mode and only prints a report of + * the unused images it finds. Pass --delete to actually delete them. + * + * Usage: + * node scripts/find-unused-images.js [--delete] [--json] [--verbose] + * + * This script only ever scans the "microsoft-edge" top-level folder of the + * repository (sibling of "scripts"); nothing outside of it is walked. + * + * Arguments: + * --delete Actually delete the unused image files (otherwise dry run). + * --json Print the report as JSON instead of human-readable text. + * --verbose Also print every image file that IS in use. + * + * Notes / assumptions: + * - Every "-images" folder is expected to sit right next to its + * matching ".md" article, in the same directory + * (e.g. "focus.md" and "focus-images/" are siblings). + * - An image is considered "used" only if its filename (case-insensitive) + * is referenced from that one matching article file. A reference to an + * image of the same name from a *different* article does NOT count as + * "used" - each images folder is checked strictly against its own + * sibling article. + * - If no matching ".md" article exists next to a "-images" + * folder, every image inside that folder is reported as unused (there + * is no article that could be using them). + */ + +import fs from 'fs'; +import path from 'path'; +import { fileURLToPath } from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +const IMAGE_EXTENSIONS = new Set([ + '.png', '.jpg', '.jpeg', '.gif', '.svg', '.webp', '.bmp', '.ico' +]); + +function parseArgs(argv) { + const args = { + delete: false, + json: false, + verbose: false, + }; + + for (const arg of argv) { + if (arg === '--delete') { + args.delete = true; + } else if (arg === '--json') { + args.json = true; + } else if (arg === '--verbose') { + args.verbose = true; + } + } + + return args; +} + +/** + * Recursively walks a directory, invoking a callback for every "*-images" + * directory found. + */ +function walk(dir, onImagesDir) { + let entries; + try { + entries = fs.readdirSync(dir, { withFileTypes: true }); + } catch (err) { + return; + } + + for (const entry of entries) { + if (!entry.isDirectory()) continue; + + const fullPath = path.join(dir, entry.name); + + if (/-images$/i.test(entry.name)) { + onImagesDir(fullPath); + } + walk(fullPath, onImagesDir); + } +} + +/** + * Collects all "*-images" directories under root. + */ +function collectImagesDirs(rootDir) { + const imagesDirs = []; + walk(rootDir, (dirPath) => imagesDirs.push(dirPath)); + return imagesDirs; +} + +/** + * Lists image files (by extension) directly inside a given "*-images" folder. + * Does not recurse into subfolders of an images folder, but does report them + * separately so nothing is silently skipped. + */ +function listImageFiles(imagesDir) { + const files = []; + const subDirs = []; + + let entries; + try { + entries = fs.readdirSync(imagesDir, { withFileTypes: true }); + } catch (err) { + return { files, subDirs }; + } + + for (const entry of entries) { + const fullPath = path.join(imagesDir, entry.name); + if (entry.isDirectory()) { + subDirs.push(fullPath); + } else if (entry.isFile()) { + if (IMAGE_EXTENSIONS.has(path.extname(entry.name).toLowerCase())) { + files.push(fullPath); + } + } + } + + return { files, subDirs }; +} + +/** + * Builds a lowercase Set of every image filename referenced from a single + * article's Markdown content, by scanning for the "/" + * pattern. + */ +function buildUsedImageNameSetForArticle(articleFilePath) { + // Matches things like: something-images/some-file.name.png + // Captures the filename portion after the last "-images/" segment, + // stopping at a closing paren, quote, whitespace, or `#`/`?` (anchors/query). + const referencePattern = /-images\/([^\s")'?#]+)/gi; + + const used = new Set(); + + let content; + try { + content = fs.readFileSync(articleFilePath, 'utf8'); + } catch (err) { + return used; + } + + let match; + while ((match = referencePattern.exec(content)) !== null) { + const rawName = match[1]; + // Strip any trailing markdown title syntax like `pic.png "title"`, + // and decode simple URL-encoding (e.g. %20 -> space). + let fileName = rawName.split(/["']/)[0]; + try { + fileName = decodeURIComponent(fileName); + } catch (err) { + // Ignore malformed percent-encoding, use raw value. + } + used.add(fileName.toLowerCase()); + } + + return used; +} + +function formatBytes(bytes) { + if (bytes < 1024) return `${bytes} B`; + const kb = bytes / 1024; + if (kb < 1024) return `${kb.toFixed(1)} KB`; + return `${(kb / 1024).toFixed(2)} MB`; +} + +function main() { + const args = parseArgs(process.argv.slice(2)); + const rootDir = path.resolve(__dirname, '..', 'microsoft-edge'); + + if (!fs.existsSync(rootDir)) { + console.error(`Error: root directory does not exist: ${rootDir}`); + process.exit(1); + } + + console.error(`Scanning "${rootDir}" for "*-images" folders...`); + const imagesDirs = collectImagesDirs(rootDir); + console.error(`Found ${imagesDirs.length} images folder(s).`); + + const report = { + rootDir, + imagesDirCount: imagesDirs.length, + unusedFiles: [], + usedFiles: [], + unexpectedSubDirs: [], + missingArticles: [], + }; + + let totalUnusedBytes = 0; + + for (const imagesDir of imagesDirs) { + const folderName = path.basename(imagesDir); + const articleBaseName = folderName.replace(/-images$/i, ''); + const articleFilePath = path.join(path.dirname(imagesDir), `${articleBaseName}.md`); + const articleExists = fs.existsSync(articleFilePath); + + if (!articleExists) { + report.missingArticles.push({ imagesDir, articleFilePath }); + } + + const usedNames = articleExists + ? buildUsedImageNameSetForArticle(articleFilePath) + : new Set(); + + const { files, subDirs } = listImageFiles(imagesDir); + + for (const dir of subDirs) { + report.unexpectedSubDirs.push(dir); + } + + for (const filePath of files) { + const fileName = path.basename(filePath).toLowerCase(); + const isUsed = usedNames.has(fileName); + + if (isUsed) { + report.usedFiles.push(filePath); + } else { + let size = 0; + try { + size = fs.statSync(filePath).size; + } catch (err) { + // ignore + } + totalUnusedBytes += size; + report.unusedFiles.push({ path: filePath, size }); + } + } + } + + report.totalUnusedBytes = totalUnusedBytes; + + if (args.json) { + console.log(JSON.stringify(report, null, 2)); + } else { + console.log(''); + console.log('='.repeat(70)); + console.log('Unused image report'); + console.log('='.repeat(70)); + console.log(`Images folders scanned : ${report.imagesDirCount}`); + console.log(`Used images : ${report.usedFiles.length}`); + console.log(`Unused images : ${report.unusedFiles.length}`); + console.log(`Reclaimable size : ${formatBytes(report.totalUnusedBytes)}`); + + if (report.missingArticles.length) { + console.log(''); + console.log(`Note: found ${report.missingArticles.length} images folder(s) with no matching sibling article (all their images are reported unused):`); + for (const { imagesDir, articleFilePath } of report.missingArticles) { + console.log(` - ${path.relative(rootDir, imagesDir)} (expected ${path.relative(rootDir, articleFilePath)})`); + } + } + + if (report.unexpectedSubDirs.length) { + console.log(''); + console.log(`Note: found ${report.unexpectedSubDirs.length} sub-folder(s) inside "*-images" folders (not scanned for files):`); + for (const dir of report.unexpectedSubDirs) { + console.log(` - ${path.relative(rootDir, dir)}`); + } + } + + if (report.unusedFiles.length) { + console.log(''); + console.log('Unused files:'); + for (const f of report.unusedFiles) { + console.log(` - ${path.relative(rootDir, f.path)} (${formatBytes(f.size)})`); + } + } + + if (args.verbose && report.usedFiles.length) { + console.log(''); + console.log('Used files:'); + for (const f of report.usedFiles) { + console.log(` - ${path.relative(rootDir, f)}`); + } + } + } + + if (args.delete) { + console.error(''); + console.error(`Deleting ${report.unusedFiles.length} unused file(s)...`); + let deleted = 0; + for (const f of report.unusedFiles) { + try { + fs.unlinkSync(f.path); + deleted++; + } catch (err) { + console.error(` Failed to delete ${f.path}: ${err.message}`); + } + } + console.error(`Deleted ${deleted} file(s).`); + } else if (report.unusedFiles.length) { + console.error(''); + console.error('Dry run only - no files were deleted. Re-run with --delete to remove the unused files listed above.'); + } +} + +main(); +