JavaScript/hacks: Revision history

From Freephile Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 February 2025

3 February 2025

31 January 2025

30 January 2025

  • curprev 16:4016:40, 30 January 2025 Admin talk contribs 1,084 bytes +1,084 Created page with "A collection of little JavaScript hacks. == Pull headings out of a page == <syntaxhighlight lang="javascript">Array.from(document.getElementsByTagName("h1")).forEach(function (item) { console.log(item.textContent); });</syntaxhighlight>Using the browser's developer console, you can pop this one-liner in to see the list of '''headings''' in your web page. * <code>document.getElementsByTagName("h1")</code> returns an [https://developer.mozilla.org/en-US/docs/Web/API/HTML..." Tag: Visual edit