Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | document.addEventListener('DOMContentLoaded', function() { |
2 | let prev = null; | ||||
3 | Array.from(document.getElementsByTagName('article')).reverse().forEach(function (article) { | ||||
4 | const dedupId = article.dataset.dedupId; | ||||
5 | if (dedupId === prev) { | ||||
6 | article.getElementsByTagName('header')[0].classList.add('hidden'); | ||||
7 | } | ||||
8 | prev = dedupId; | ||||
9 | }); | ||||
10 | }); |