0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Highlight job ads posted by job agent in LinkedIn Jobs

Posted at

Reason to write this

When I look up jobs in "LinkedIn Jobs", I found that there are so much ads posted by job agent. I used so much time every day to filter out these ads. Therefore I wrote this code.
This code is written by pure JavaScript and no 3rd library is used. I tried it on Google Chrome only and it seens that can work on other browser.

How to use the code

  1. fill your agent list into variable "agentList"
let agentList = [
  "ADD YOUR LIST INTO HERE"
];

function highlightAgent() {
  document.querySelectorAll("a[data-control-name='job_card_company_link']").forEach(function(currentValue) {
    let name = currentValue.text.trim();
    let agentName = agentList.find(function(input) {return input === name});
    if (agentName !== undefined) {
      currentValue.style.backgroundColor = "#FF0000";
    }
  });
}

window.setInterval(highlightAgent, 5000);
  1. paste the code into "Console" of "DevTools" (assume that you are using Google Chrome). The highlight function will be run in every 5 seconds, so you can see result at most 5 seconds after you press next page.

highlightAgent01.png

It is in active when you press next page, unless you press "reload" of browser.

0
0
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?