I want to copy highlighted text from a certain site into an output folder on my Desktop. I know there are scripts that can copy highlighted text via JavaScript but I've only seen them for copying highlighted text on the particular website where your JavaScript is being executed.
Say I highlighted text from google.com... is there a way to run a script from my terminal and have that text copied and pasted into a folder that I specify on my Desktop?