Bookmarklet for searching the Fake Book Index

Ever been listening to a tune and wondered if there exists a chart for it in one of the commonly used fake books? The thoughtful folks at SeventhString.co.uk have provided a searchable database they call The Fake Book Index. Just type in a song title to see what books provide a lead sheet. (See the instructions at the bottom of the page for how to save your preferences of what books to search etc.)

Since I use this all the time while listening to music online I took a few minutes to create a bookmarklet for the search. Now I can simply highlight a song title on a web page and click the FB button on my Firefox toolbar to search the Fake Book Index. If I click FB with nothing highlighted, I am prompted for a title.

Highlight and click

Highlight text and then click
Just Click...

Just click the bookmarklet without highlighting

Here's the bookmarklet code. (This code should not have any linebreaks. Downloading the attached text file might be easier than cutting and pasting the text below and then removing the line breaks.)


javascript:q = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection
? document.getSelection() : document.selection.createRange().text);
if (!q) q = prompt(%22You didn't select any text. What tune are you looking for?%22, %22%22);
if (q!=null) location=(%22http://www.seventhstring.co.uk/fbindex.html?z_bklist=2&z_dpage=Results&z_titlelen=0
&cs1=1&cs2=1&cs3=1&cs5=1&cs10=1&cs11=1&cs6=1&cs12=1&cs8=1&cs9=1&aeb=1&hl1=1&hl11=1&hl12=1&hl2=1
&hl3=1&hl8=1&hl9=1&hl4=1&hl5=1&hl6=1&hl7=1&hl13=1&fm1=1&fm2=1&fm3=1&fm4=1&fm5=1&cc0=1&lg1=1&ltfk=1&wb1=1&wb2=1
&wb3=1&bbeb=1&jbg=1&sb2=1&le1=1&dh1=1&dh2=1&lhb=1&pm=1&jchl=1&cmhl=1&kbhl=1&alhl=1&bef=1&omni=1&gs0=1&gs1=1
&jb0=1&jb1=1&jb2=1&hlrb=1&hlb=1&ts1=1&ts2=1&ts3=1&belt=1&ab0=1&pk0=1&pk1=1&hlrb1=1&hlrb2=1&hlrb3=1&orb1=1
&orb2=1&orb3=1&ovrb=1&sch=1&z_srchstr=%22 + escape(q.replace(/\%22/g,%22%22))).replace(/ /g, %22+%22);
void 0

AttachmentSize
fb_bookmarklet.txt893 bytes