Created
March 19, 2018 12:46
-
-
Save arnorhs/4f4d0ed5434fcba27368d9703de2765e to your computer and use it in GitHub Desktop.
see all forms on a website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.forEach.call(document.forms, f => { console.log('[' + f.method + '] ' + f.action); console.table(Array.prototype.map.call(f.elements, el => { return {name: el.name, nodeName: el.nodeName } }))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment