Okay, I've made a stab at it. Please use these manual install instructions:
-
Download the export script from:
https://raw.githubusercontent.com/tumult/hype-export-scripts/IABPoliteAd/IABPoliteAd/IABPoliteAd.hype-export.py
(you may need to hit option-return in the browser to get the file to download) -
Open the /Applications/Utilities/Terminal.app and enter in this command:
open ~/Library/Application\ Scripts/com.tumult.Hype4This will open the Applications Scripts folder; alternatively you can get to this via Hype's Preferences > Exporting > Show Export Scripts Folder in Finder
-
Move the
IABPoliteAd.hype-export.pyfile into thecom.tumult.Hype4folder -
Back in the Terminal, enter this command:
chmod 755 ~/Library/Application\ Scripts/com.tumult.Hype4/IABPoliteAd.hype-export.pyThis will give the export script permission to run.
It should be installed now. In Hype, you should be able to choose the File > Export as HTML5 > IABPoliteAd… menu item.
There's a few minor changes I made from the code you posted in the Clicktag problem in index.html thread:
- It allows for case insensitivity in the clicktag URL parameter
- It allows for a target URL parameter
- It sets the clicktag/target in the DOMContentLoaded event, since that's basically the same as a script at the bottom.
I should also note this is a bit different than the AxelSpringer export script in that:
- It doesn't inline the *_hype_generated_script.js document data/loader contents
- It doesn't request the HYPE-NNN.x.min.js runtime file in a
<script>tag in the head; instead it lets the loader grab this - It always delays 1 second before loading to be polite. I don't have this as configurable.
Let me know how this works, and if it is good and passes any validation you use on production ads, then I'll make an installer and put it on our export scripts page.