Last active
April 15, 2024 14:06
-
-
Save fanuch/1511dd5423e0c68bb9d66f63b3a9c875 to your computer and use it in GitHub Desktop.
Block Click to Edit on Jira Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Disable Jira Click Edit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Disable click edit in Jira issue descriptions | |
// @author fanuch | |
// @match https://*.atlassian.net/browse/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setTimeout(function() { | |
document.querySelector('.ak-renderer-document').addEventListener('click', function(e) { | |
e.stopPropagation(); | |
console.log("Blocked click-edit of Jira issue description. You're welcome."); | |
}, true); | |
}, 100); // 100 milliseconds wait for elements to load | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment