Created
October 24, 2022 12:28
-
-
Save cheikhshift/2f84d571d84f36c7ac5c0c8838d82f7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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