A handler for automatically launch offline Flash player from a custom scheme url
- this tool is only deployed on !nsfw! https://h-flash.com currently.
- download this tool from release.
- extract it to any location you want.
- run HFlashPlayer.exe one time, accept user admin control pop out to update registry.
- open a flash page on h-flash, click the "CLICK TO PLAY" link.
- we need a user script to add buttons on flash plugin objects.
- install user script browser extension Tampermonkey.
chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
firefox: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/ - click Tampermonkey icon -> Dashboard -> Utilities -> Install from URL, copy and paste this url to install: https://raw.githubusercontent.com/h-flash/HFlashPlayer/main/ScriptInjector.user.js
- (optional) Edit Scheme property in Form1.cs for your custom scheme, then rebuild.
- Combine scheme header with base64 encoded swf full path as a launch url. example: var url = "hflash://" + base64encode("http://yoursite.com/"+swfpath);
hints for webmaster:
- swfpath need not urlencode.
- modern browsers has built in base64encode function, just: btoa(swfpath) .
- if you open the launch url in a new window, it will leave a blank window, if not, the web page will stop functioning after launch. h-flash's solution: open in a hidden iframe.
When you click a "CLICK TO PLAY" or "HFlashPlayer" button: Q1. nothing happened. A11. your HFlashPlayer was not registered correctly. please run HFlashPlayer.exe to register. Q111. nothing happens when I run HFlashPlayer.exe A111. you need .net framework 4.0 to run this program. A12. your web browser or antivirus blocked the request, check your browser's application setting or try in another web browser. Q2. a blank window and it's keeps blank forever. A21. click file menu, you will see a url on position 1, carefully type and open it in your web browser to test the file is reachable. Q211. I saw a browser check or a captcha, or I saw the check a while ago. A211: your network was marked as unsafe by the firewall, you need to download and play offline, or use a proxy. Q212. I can download the file but I'm using a proxy. A212: you need to proxy the flashplayer.exe also.
if your situation not in the list please submit a new issue.