Grimoire-
Command
.es

GNU+Linux command memo

List web page links in Firefox

Lister les liens d’une page web dans Firefox

In the JavaScript console (F12 or CTRL+SHIFT+K to focus directly the console tab), enter:

document.querySelectorAll('a') (1)
document.querySelectorAll('a').forEach((a,i) => console.log(i,a)) (2)
console.log(document.querySelectorAll('a')) (3)
1 List all links in the console.
2 List and count links in the console.
3 Display in a compact line the firsts links.

Each line can be the link of a JavaScript bookmark : javascript:console.log(document.querySelectorAll('a'))