Farid Zakaria

Archive 2 min read

HypeMachine Extension on Chrome Web Store


This post comes from my original WordPress blog, written between 2009 and 2018. It is kept here verbatim as an archive — the formatting did not always survive the move, and I no longer agree with all of it.

Cool.
I just uploaded the HypeMachine extension I had been working on into the Chrome Web Store.

Check it out here!

I fixed somewhat the issue of the script not being injected on different pages because the new pages are loaded with an AJAX call rather than reloading the whole page (which would cause the content script to be called).
I solved it by overloading the on_click event function...

Fingers crossed.

Things I still want to do.... can you help?

The script is obviously in by no means perfect and I'm looking for some help making it better overall.
The list of issues I'd like to tackle, polish and fix are:

  • Cleanup the code in general. My javascript to be honest, is horrendous and my understanding of jquery is subpar.
  • Create a CSS sprite for the download button so that it looks nicer.
  • Line up the download item nicer with the each song which just needs some CSS tuning.
  • Improve the means at which I inject the script as well as the download buttons or have someone look at it and tell me ways in which I can improve it.

Let me know!

6 archived comments

James 2011-01-03

Hey, any chance your chrome extension for hypem could save the file as the track name? similar to the firefox extension? https://addons.mozilla.org/en-US/firefox/addon/13886/

cheers

Farid Zakaria 2011-01-03

I didn’t think it was possible to do that on server-side javascript but I’ll take a look at that extension and maybe see how they do it. Cool.

Farid Zakaria 2011-01-03

@James: Looking at that extension looks like they are using specific firefox download API’s which have no equivalent ones in Chrome which sucks and is disappointing :(

aks 2011-01-05

nice extension, thanks. It doesn’t really need the page action button though, you can just remove that from your manifest and then the icon wont take up space. I made an icon which blends in with the hype machine ui a little more, you are welcome to use it for this if you want http://www.eecs.tufts.edu/~asamps01/download.png

Farid Zakaria 2011-01-06

@aks: Thanks aks. I’ll test out the icon and see how it looks. If it looks nice, I’ll try and make a rollover image for it as well.

Once I have a second of free time I’ll push an update out that removes the icon.

Alex 2014-07-06

Clear video. I now understand the fetaher. What I don’t understand is why using these functions is better than inserting images in the articles. I usually have several images simply as illustration within each article. This offers the option of only one image at the start of the article. Why is it better?