Page 1 of 1

Chrome plugin for Vic20Chrome and .prg links

Posted: Mon Mar 11, 2013 4:27 am
by matsondawson
http://mdawson.net/files/Vic20Chrome%20 ... Plugin.zip

For those of you who'd like a Vic-20 emulator link to appear after the any link ending in ".prg" I have written the following plugin.
Just download the and expand the zip, go to Chrome's Tools -> Extensions menu option and turn on the developer mode at the top right, then click on 'load unpacked extension...' and select the expanded zips folder.

And then head on over to http://www.zimmers.net/anonftp/pub/cbm/ ... index.html where you will find [emulator] links after the any .prg link

The default options on the plugin is only to scan denial and zimmers.
This is just beta atm, and will assume all prgs are for PAL machines.

Edit1: I notice if you middle click on the zimmers link (not left click) for some reason the plugin doesn't fire. Might be a chrome bug?
Edit2: Seems to be a cache issue, as shift middle click fixes it.

Posted: Mon Mar 11, 2013 7:58 am
by FD22
I like this - it's a much slicker solution than posting re-pasted links in threads with downloads in. Good work!

Posted: Mon Mar 11, 2013 9:11 am
by Kweepa
Yay!

Posted: Tue Mar 12, 2013 11:10 pm
by Jeff-20
That's a cool idea! Love it.

Posted: Wed Mar 13, 2013 6:46 pm
by matsondawson
I've made an update:
* To work around the chrome bug on caching
* Support for csm.gz and tar.gz links auto playing in the emulator
* Added .a0 support.
* Ability to select the machine type(pal/ntsc) and memory requirements in a popup off the link.

Further to do:
* replace the [emulate] with a Vic20 icon.
* remove memory selection for non tape links.
* maybe add an icon to the tool bar to launch the vic20 emulator without an app link.
* maybe detect gb20 style names and set memory correctly.

Problems...
There's a lot of .zip uploads and I have no idea how I would work out if it has a prg in it or not from a web page perspective... Any ideas?
Maybe if people named the zip as say: ghosts.prg.zip and had a ghosts.prg inside it I could work it out.
Or assume for a given website, e.g. denial that any zips on the page contain possible prgs and have a second menu appear in the emulator asking which file to load.

Posted: Thu Mar 14, 2013 12:30 am
by matsondawson
Now has a nicer icon, and two different popups depending on whether loading from tape or prg

Posted: Fri Mar 15, 2013 3:39 pm
by matsondawson
I've just added zip file support.
It searchs the zip for .prgs and gives the option to select which one you want if there is more than one.

If your zip is not on denial or zimmers then you'll need to turn on the "All websites" option.
I still have a TODO to add your own custom sites, as you don't want every site with a zip creating a link to JsVic20.