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.

Revisions

  1. cheikhshift created this gist Oct 24, 2022.
    30 changes: 30 additions & 0 deletions arc_scrap.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    // 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)