1
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.

Chrome Developer Tools で Web サイトの一部からリンクの一覧を取得する

Posted at

手順

要素を選択した後にこのコマンドをコンソールで実行するだけです。

$$('a', $0).map(a => a.href)

使ってみた

Yahoo News のトピックス一覧

コマンドはそのまま使えます。

TechCrunch Japan の新着順一覧

無駄なリンクを取り除くために selector に h2 を追加します。

$$('h2 a', $0).map(a => a.href)

1
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
1
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?