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:
javascript:document.querySelectorAll('a').forEach (1)
javascript:document.querySelectorAll('a').forEach((a,i) => console.log(i,a)) (2)
javascript: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. |
4 | Each line can be the link of a bookmark. |