Skip to content

Instantly share code, notes, and snippets.

@cheikhshift
Created October 24, 2022 12:28
Show Gist options
  • Save cheikhshift/2f84d571d84f36c7ac5c0c8838d82f7a to your computer and use it in GitHub Desktop.
Save cheikhshift/2f84d571d84f36c7ac5c0c8838d82f7a to your computer and use it in GitHub Desktop.
// Since ads are loaded via
// ajax, i'm giving it 7 seconds
// to load and render.
setTimeout(() => {
let working = false
// Check if on remote job page.
// only then, run query.
if(window.location.href.includes("global-remote-jobs/"))
$(".job-card").each((i, e) => {
let el = $(e)
let company = el.data("company")
// skip ads without
// company information
if(!company)
return
if(!localStorage[company] && !working){
localStorage[company] = "checked"
working = true
el.click()
}
})
}, 7000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment