This is a quick and dirty SWQL query extractor I bult for working with Modern Dashboards. Frequently I'll want to know what awesome query someone wrote to build the dashboard, but I don't necessarily want to import it into my environment to just take a peek.
I find this useful to know if a Modern Dashboard will work with the data in my environment. Now, I can just extract the SWQL with this script and plug the query into [mention:988f674088944a53a6ce2b0e40c8d246:6b577b8c04704e209d29b6772bf67243] and see if anything if value is returned - easy.

[embed:6b06e1a7-0ec1-4e43-9421-8caaf95469b6:119f3444-2681-4e39-9404-aa75807076cb:message=I%20don%27t%20have%20any%20field%20picker-based%20queries%20in%20my%20lab%20and%20was%20too%20lazy%20to%20build%20one%20for%20testing.%C2%A0%C2%A0The%20script%20may%20error%20out%C2%A0on%20those%20elements%20because%20they%20don%27t%20have%20actual%20SWQL%20queries%20driving%20them&type=warning]