You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
354 B

2 years ago
  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. });