Created
October 24, 2022 12:28
-
-
Save cheikhshift/2f84d571d84f36c7ac5c0c8838d82f7a to your computer and use it in GitHub Desktop.
Revisions
-
cheikhshift created this gist
Oct 24, 2022 .There are no files selected for viewing
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 charactersOriginal 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)