X-Git-Url: https://src.twobees.de/?p=tampermonkeyscripts.git;a=blobdiff_plain;f=AzureDevOpsCommentEnhancer.user.js;h=aa338109e0cbfd84efe0cb9687d93c36bb3ec0b2;hp=083bd5a441a798e649b6b2eec7a1855f0e634101;hb=585e782df064fcc0c31d584a9ea182245e060a89;hpb=b7f46c0732e78882dda3236b47dc25a72d1554b3 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 });