Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser
pretty-print-query-string-params.js

#Basic

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