Hackvertor export API

I’ve had requests to create a Hackvertor API to allow you to embed it on your own sites, so I’ve created one. It uses postMessage to communicate and you can set the width, height, top, left and callback for your output. The code looks like this:-


Hackvertor.write({top:'0px',left:'300px',width:'700px',height:'400px', callback:function(str) { document.getElementById('output').value=str; }});

This will write a iframe pointing to the Hackvertor export and the callback will retrieve the output. I’ve done a complete sample to show you how it works:-
Hackvertor export example

The API contains a couple of functions:-
Hackvertor.show() – Shows the Hackvertor window
Hackvertor.hide() – Hides the Hackvertor window
Hackvertor.send(str) – Sends some input to Hackvertor

It still doesn’t work on Chrome correctly yet as there is a minor JSReg issue I need to sort out, I’ll fix that as soon as I’ve got time
fixed!. But anyway enjoy!

4 Responses to “Hackvertor export API”

  1. yehg writes:

    Many Thanks! I’ll update Mario’s PCE with HV embedded at yehg.net\e

  2. Soroush Dalili writes:

    I know you are busy, but don’t you want to fix those sandbox issues which are under my profile first? πŸ˜€ Some of them still work.
    However, I’m sure if you fix them all, some of the legit functions will stop working.

  3. Soroush Dalili writes:

    Great! I checked your website, you’ve fixed them all!
    I’m sure that last week it was still vulnerable πŸ˜€
    Let me know if you have any other challenge πŸ˜‰

  4. Gareth Heyes writes:

    Soroush you’d defo be one of the first ones I’d challenge πŸ™‚