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.
11 lines
354 B
11 lines
354 B
12 months ago
|
document.addEventListener('DOMContentLoaded', function() {
|
||
|
let prev = null;
|
||
|
Array.from(document.getElementsByTagName('article')).reverse().forEach(function (article) {
|
||
|
const dedupId = article.dataset.dedupId;
|
||
|
if (dedupId === prev) {
|
||
|
article.getElementsByTagName('header')[0].classList.add('hidden');
|
||
|
}
|
||
|
prev = dedupId;
|
||
|
});
|
||
|
});
|