Created
November 14, 2023 16:04
-
-
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 file contains 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
/* | |
* 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