From 78efd422b3279d001b8686913cca30f2c831ebb2 Mon Sep 17 00:00:00 2001 From: Charly Koch Date: Tue, 22 Jul 2025 17:44:10 +0200 Subject: [PATCH 1/2] feat: apply to all /_git/ pages, not only /pullrequest/ adds support in at least /pushes/ and /commit/ pages --- content_script.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content_script.js b/content_script.js index 6c198a0..be8b89c 100644 --- a/content_script.js +++ b/content_script.js @@ -105,12 +105,11 @@ function processFileDiff(fileDiffElement) { } function applySyntaxHighlighting() { - // Only apply highlighting if we're on a PR page - if (!window.location.href.includes('/_git/') || !window.location.href.includes('/pullrequest/')) { + if (!window.location.href.includes('/_git/')) { return; } - console.log("ADO Syntax Highlighter: Applying..."); + console.debug("ADO Syntax Highlighter: Applying..."); const fileDiffPanels = document.querySelectorAll('.repos-summary-header'); fileDiffPanels.forEach(fileDiffPanel => { @@ -118,7 +117,7 @@ function applySyntaxHighlighting() { }); } -console.log("ADO Syntax Highlighter: Content script loaded."); +console.debug("ADO Syntax Highlighter: Content script loaded."); // Initial run applySyntaxHighlighting(); From 6b9c647bf8af2b7c96842a50be2cebca11c60eea Mon Sep 17 00:00:00 2001 From: Charly Koch Date: Tue, 22 Jul 2025 17:49:35 +0200 Subject: [PATCH 2/2] feat: bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 9c91693..e9d04c4 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/chrome-manifest", "manifest_version": 3, "name": "Azure DevOps PR Syntax Highlighter", - "version": "0.1.1", + "version": "0.2.0", "description": "Adds syntax highlighting to partial file diffs in Azure DevOps Pull Requests.", "icons": { "16": "assets/icons/icon16.png",