]> src.twobees.de Git - tampermonkeyscripts.git/commitdiff
fix work item tampering
authorTobias Sachs <github.com-Moh9the-ts@ctsachs.de>
Thu, 6 Aug 2020 09:09:28 +0000 (11:09 +0200)
committerTobias Sachs <github.com-Moh9the-ts@ctsachs.de>
Thu, 6 Aug 2020 09:09:28 +0000 (11:09 +0200)
AzureDevOpsCommentEnhancer.user.js

index 083bd5a441a798e649b6b2eec7a1855f0e634101..aa338109e0cbfd84efe0cb9687d93c36bb3ec0b2 100755 (executable)
@@ -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() {
             {
                 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 });