Created
April 7, 2015 19:07
-
-
Save cevaris/52d3c2b61b1057b5705a to your computer and use it in GitHub Desktop.
Block Jira Editor Shortcuts
This file contains hidden or 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
// Here You can type your custom JavaScript... | |
// Get a list of elements on the page. | |
var x = document.getElementsByTagName("*"); | |
// Go through each element and check for the accessKey property. | |
// Obliterate it if found. | |
for (var i = 0; i < x.length; i++) | |
{ | |
if(x[i].accessKey) | |
{ | |
x[i].accessKey = null; | |
} | |
if(x[i].getAttributeNode("data-shortcut")) { | |
x[i].getAttributeNode("data-shortcut").value = null; | |
} | |
if(x[i].getAttributeNode("data-operation")) { | |
x[i].getAttributeNode("data-operation").value = null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This javascript can be used in conjunction with
Custom JavaScript for websites
chrome plugin (or similar Firefox/Safari) to inject javascript for specific hosts.https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
Keep in mind, this also disables the CTRL+B and CTRL+F back/forward single character, but at least it does not add more text.