Disable editing Jira's task on click

Disable clicking on JIRA tasks to update description

Od 25.08.2022.. Pogledajte najnovija verzija.

// ==UserScript==
// @name Disable editing Jira's task on click
// @license MIT
// @version 0.1
// @description Disable clicking on JIRA tasks to update description
// @match https://*.atlassian.net/*
// @namespace https://greasyfork.org/users/950499
// ==/UserScript==

(function () {
    const onLoad = () => {
        const elements = [...document.querySelectorAll('.ak-renderer-document')];

        elements.map(
            el => addEventListener('click', () => {event.stopImmediatePropagation();}, false)
        );

    };

    document.addEventListener('DOMContentLoaded', onLoad, false);
    document.addEventListener("DOMNodeInserted", onLoad, false);

})();