27 November 2012

X Clipboard Cleaner

Ever copy/paste from a web page and have the web page's style mess up the document you are pasting into?

That's pretty common for me.

Chrome/Firefox both preserve HTML style when copying text to the clipboard, and the following are common targets:

  • email
  • HTML-enabled editor widget
  • word processor document
My old process was:
  1. copy text/link from web page
  2. open up a text editor
  3. paste inside the text editor
  4. copy the same text again, this time without the style
  5. paste into the target location
I finally got sick of doing this manually all the time, so I wrote a script and put it in my app launcher bar.

Here is a gist with a script you can download: