Trello: highlight cards containing a word
Asks for a word and outlines in yellow every card on the board that contains it.
Code to copy
// Type a word into prompt() and highlight matching cards on the board
(function () {
const term = (window.prompt('Highlight cards containing:') || '').trim().toLowerCase();
document.querySelectorAll('[data-testid="trello-card"], .list-card').forEach(function (card) {
const txt = (card.textContent || '').toLowerCase();
const hit = term && txt.indexOf(term) !== -1;
card.style.outline = hit ? '3px solid #f5cd47' : '';
card.style.outlineOffset = hit ? '-3px' : '';
});
})();
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's JavaScript panel and save — it runs on every page visit.
Rate this example
No ratings yet — be the first.