JIRA UI

Updates the JIRA UI to improve its usability

  1. // ==UserScript==
  2. //
  3. //Displayable Name of your script
  4. // @name JIRA UI
  5. //
  6. // brief description
  7. // @description Updates the JIRA UI to improve its usability
  8. //
  9. //URI (preferably your own site, so browser can avert naming collisions
  10. // @namespace https://greasyfork.org/users/3766-thangtran
  11. //
  12. // Your name, userscript userid link (optional)
  13. // @author ThangTran (https://greasyfork.org/users/3766-thangtran)
  14. //
  15. // If you want to license out
  16. // @license GNU GPL v3 (http://www.gnu.org/copyleft/gpl.html)
  17. //
  18. //(optional) may be used by browsers to display an about link
  19. // @homepage https://greasyfork.org/users/3766-thangtran
  20. //
  21. //Version Number
  22. // @version 1.0.1
  23. //
  24. // Urls process this user script on
  25. // @include https://*.atlassian.net/*
  26. //
  27. // Add any library dependencies here, so they are loaded before your script is loaded.
  28. //
  29. // @require http://code.jquery.com/jquery-2.1.1.min.js
  30. //
  31. // @history 1.0 first version
  32. //
  33. // ==/UserScript==
  34.  
  35. // extend JavaScript
  36. // credit: http://stackoverflow.com/questions/280634/endswith-in-javascript
  37. String.prototype.endsWith = function(suffix) {
  38. return this.indexOf(suffix, this.length - suffix.length) !== -1;
  39. };
  40.  
  41. //And of course your code!!
  42. $(document).ready(function ()
  43. {
  44. $("head").append("<style>" +
  45. ".ghx-inner { height: 5em !important; line-height: 1 !important; font-size: 0.8em; word-break: break-all }" +
  46. ".ghx-key-link { font-size: 0.8em }" +
  47. "</style>");
  48. });