Jira click to edit disabled

disables jira click to edit feature

  1. // ==UserScript==
  2. // @name Jira click to edit disabled
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description disables jira click to edit feature
  6. // @author You
  7. // @match https://jira.*/browse/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. // Disable 'click to edit' function.
  14. // Using setInterval to re run this constantly for when Jira's AJAX calls reenable the feature.
  15. var removeCTE = setInterval(function() {
  16. //For each editable element type
  17. var editableElms = AJS.$('h1.editable-field.inactive, div.editable-field.inactive, span.editable-field.inactive, div.editable-field')
  18. if (editableElms.length) {
  19. editableElms.removeClass('inactive');
  20. editableElms.removeAttr('title');
  21. editableElms.find('span.overlay-icon').hide();
  22. }
  23. },500);
  24. })();