const elements = document.querySelectorAll('bracket-less');

function doAction(e) {
  e.stopPropagation();

  if (e.target.tagName !== 'BRACKET-LESS') return;

  e.target.classList.toggle('bracket-less');
}

document.body.addEventListener('click', doAction);

function activate(active) {
  if (active) { // play -> text collapsed
    elements.forEach(el => el.classList.add('bracket-less'));
  } else { // pause -> text displayed
    elements.forEach(el => el.classList.remove('bracket-less'));
  }
}

chrome.runtime.onMessage.addListener((active, _, sendResponse) => {
  activate(active);
  sendResponse('action complete');
});

const elements = document.querySelectorAll('bracket-less');

function doAction(e) {
  if (e.target.tagName !== 'BRACKET-LESS') return;

  e.target.classList.toggle('bracket-less');
  e.stopPropagation();
}

document.body.addEventListener('click', doAction);

function activate(active) {
  if (active) { // play -> text collapsed
    elements.forEach(el => el.classList.add('bracket-less'));
  } else { // pause -> text displayed
    elements.forEach(el => el.classList.remove('bracket-less'));
  }
}

chrome.runtime.onMessage.addListener((active, _, sendResponse) => {
  activate(active);
  sendResponse('action complete');
});

FIX LINKS KILLING