Skip to content

Instantly share code, notes, and snippets.

@brisbanewebdeveloper
Created July 13, 2012 12:51
Show Gist options
  • Select an option

  • Save brisbanewebdeveloper/3104742 to your computer and use it in GitHub Desktop.

Select an option

Save brisbanewebdeveloper/3104742 to your computer and use it in GitHub Desktop.
Bookmarklet for searching music quickly at Beatport to tweet !!
javascript:function s(){window.open('http://www.beatport.com/search?query='+encodeURIComponent(prompt("Search Text", "").replace(/\s+[0-9]*\s+[0-9][0-9]?\/[0-9][0-9]?\/[0-9][0-9]|[0-9][0-9]:[0-9][0-9].+$/igm, '').replace(/[^'a-z0-9]/igm, ' ').replace(/(re)?mix|[^0-9a-z]+$/gi, '')), '_blank');}s();void(0)
@brisbanewebdeveloper
Copy link
Copy Markdown
Author

I am using Chrome and have noticed that this bookmarklet works only if I click it on the tab displaying a website.

@brisbanewebdeveloper
Copy link
Copy Markdown
Author

I use this bookmarklet with iTunes. My playlist has the following column and you may have to layout the column same to make this bookmarklet work:

Name, Artist, Album by Artist, Date Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment