Skip to content

fix(constants.js): updated job card selector#93

Merged
valdoryu merged 2 commits into
njelich:mainfrom
priverop:main
May 27, 2026
Merged

fix(constants.js): updated job card selector#93
valdoryu merged 2 commits into
njelich:mainfrom
priverop:main

Conversation

@priverop
Copy link
Copy Markdown
Contributor

The current selector doesn't exist anymore:

image

I changed it for ".job-card-container" and it works fine:

image

If we wanted to make it more robust, we could add more selectors to that JOB_SELECTORS array export const JOB_SELECTORS = ['.job-card-container', 'div[data-job-id]'] because querySelectorAll won't choose the same node twice. In case Linkedin changes it again. Let me know if you prefer this one!

I don't mind changing this in the future if it breaks again, if I get a @... It's just a one liner.

@valdoryu
Copy link
Copy Markdown
Collaborator

@priverop Thanks for the fix, I think keeping both would be better for robustness

Linkedin love to do progressive feature rollouts

@priverop
Copy link
Copy Markdown
Contributor Author

@valdoryu done! Tested and it works fine.

Feel free to @ me if this breaks again (I'll try to look it up from time to time).

@valdoryu
Copy link
Copy Markdown
Collaborator

Thanks !

@valdoryu valdoryu merged commit 285fea3 into njelich:main May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants