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.

LinkedIn Jobsに人材紹介会社からの求人広告をマーキングする

Posted at

経緯

最近"LinkedIn Jobs"に仕事を探し、そこにはたくさんの人材紹介会社からの求人広告が載せている。たくさんの時間を使ってこれを飛ばすのは困るので、だからこのコードを作った。
このコードはJavaScriptで書かれて、外部ライブラリは使わない。Google Chromeに試したが、他のウェブブラウザが使われると思う。

どうやって使うの

  1. 変数"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. "デベロッパーツール"の"Console"に上のコードを貼り付けてください(Google Chromeが使う場合)。マーキングのコードは毎5秒実行するので、次のページに押しても、5秒にはマーキングが見られる。

highlightAgent01.png

次のページに押しても、コードは有効する。無効する時にはウェブブラウザの"再読み込み"を押してください。

0
0
0

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?