From: Tobias Sachs Date: Thu, 6 Aug 2020 09:09:28 +0000 (+0200) Subject: fix work item tampering X-Git-Url: https://src.twobees.de/?a=commitdiff_plain;h=585e782df064fcc0c31d584a9ea182245e060a89;p=tampermonkeyscripts.git fix work item tampering --- 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 });