From 585e782df064fcc0c31d584a9ea182245e060a89 Mon Sep 17 00:00:00 2001 From: Tobias Sachs Date: Thu, 6 Aug 2020 11:09:28 +0200 Subject: [PATCH] fix work item tampering --- AzureDevOpsCommentEnhancer.user.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/AzureDevOpsCommentEnhancer.user.js b/AzureDevOpsCommentEnhancer.user.js index 083bd5a..aa33810 100755 --- a/AzureDevOpsCommentEnhancer.user.js +++ b/AzureDevOpsCommentEnhancer.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Fix ADS checkin comments in discussion and history of workitems -// @version 0.6 +// @version 0.7 // @author Tobias Sachs // ... in @match replace "ads" with the url of you Azure DevOps Server // @match https://ads/* @@ -10,6 +10,7 @@ // @description // ==/UserScript== +// 0.7: fix work item tampering // 0.6: Add link to Changeset in diff view (function() { @@ -83,14 +84,12 @@ { fixVersionControl(); } - else if (url.includes("/_workitems")){ + else{ + // if (url.includes("/_workitems")){ + // does not work since workitem are often shown in + // diaolgs on random pages fixWorkitems(); } - else - { - console.info("nothing to do here"); - return; - } // keep watching for changes. observer.observe(document, { subtree: true, childList: true, characterData: true }); -- 2.39.2