gndps / Indeed hide applied jobs

// ==UserScript==
// @name        Indeed hide applied jobs
// @namespace   Violentmonkey Scripts
// @match       https://ca.indeed.com/jobs
// @grant       none
// @version     1.0
// @author      gndps
// @license     MIT
// @description 27/01/2022, 15:17:41
// ==/UserScript==

setTimeout(function() {
  var jobCards = document.getElementsByClassName('jobCard_mainContent');
  console.log(`violent found job cards ${jobCards.length}`)
  var i = 0
  for (const jobCard of jobCards) {
    if (jobCard.getElementsByClassName('applied-snippet').length > 0) {
        i++
        jobCard.parentElement.parentElement.parentElement.parentElement.parentElement.style.display = 'none';
    }
  }
  console.log(`violent ${i} card hidden`)
}, 1000);