Skip to content

Instantly share code, notes, and snippets.

@fanuch
Last active April 15, 2024 14:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fanuch/1511dd5423e0c68bb9d66f63b3a9c875 to your computer and use it in GitHub Desktop.
Save fanuch/1511dd5423e0c68bb9d66f63b3a9c875 to your computer and use it in GitHub Desktop.
Block Click to Edit on Jira Issue
// ==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