santa / Show full backlog in Jira board

// ==UserScript==
// @name        Show full backlog in Jira board
// @description Click on the three dots to show full backlog.
// @license     MIT
// @match       https://*.atlassian.net/*RapidBoard.jspa*
// @author      Gerald Senarclens de Grancy
// @version     0.1
// @grant       none
// ==/UserScript==

let interval;

const unfoldBacklog = () => {
  const elem = document.querySelector('.js-show-all-link');
  if (elem) {
    elem.click();
    clearInterval(interval);
  }
};

window.addEventListener('load', () => {
  interval = setInterval(unfoldBacklog, 3000);
}, false);