Skip to content

Instantly share code, notes, and snippets.

@tobybot
Created November 14, 2023 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobybot/f5f8f375db464f0dfead355d9fec5623 to your computer and use it in GitHub Desktop.
Save tobybot/f5f8f375db464f0dfead355d9fec5623 to your computer and use it in GitHub Desktop.
Trello activity log filter - remove duplicate entries from the activity log caused by mirrored cards (via placker or otherwise) on other boards
/*
* This finds every element with class .phenom as a first-level child of .list-actions,
* then finds ".phenom-meta.quiet" within that, which contains the name of the board.
* If the given board name is not found, then remove this action entry.
* I just run this in the browser console to filter on the fly when needed. Throwing
* it in GitHub Gist in case I lose it locally.
*/
var elements = document.querySelectorAll('.list-actions > .phenom');
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
var meta = element.querySelector('.phenom-meta.quiet');
if (meta && meta.textContent.indexOf('The Name of The Board') === -1) {
element.parentNode.removeChild(element);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment