osx - Mac keyboard shortcut to strip special characters and search selected text in youtube -


often @ podcasts tracklist , identify songs download. process looks this:

  1. go tracklist page
  2. select song name (which on occassion has underscores / hyphens instead of spaces)
  3. switch youtube tab
  4. paste text
  5. remove special characters such underscores and/or hyphens
  6. search

i create keyboard shortcut take selected text, strip out special characters (mostly concerned hyphens , underscores), , create youtube search in new tab. on mac os x 10.6 , use firefox part. ideas?

greasemonkey might able out here, or may use bookmarklet:

javascript:void(window.open("http://www.youtube.com/results?aq=f&oq=&search_query="+window.getselection().tostring().replace(/\w+/g,'+'))); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -