Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser


Pretty print all query string params on page as table

A script to run all query string params as table. Implemented by mattpass

Print string params demo

(function () { var url = location; var querystring =; var tab = querystring.split("&").map(function (qs) { return { "Key": qs.split("=")[0], "Value": qs.split("=")[1], "Pretty Value": decodeURIComponent(qs.split("=")[1]).replace(/\+/g, " ") } });"Querystring Values"); console.log("URL: " + url + "\nQS: " + querystring); console.table(tab); console.groupEnd("Querystring Values"); })();
Built with ❤️ by @domnguyen and everyone on the internet 🚀