Download Jar. Libraryless. Click here for Pure Java version (4402L/30K).
1 | !7 |
2 | |
3 | html { |
4 | if (eq(uri, "/silence.mp3")) |
5 | ret subBot_serveFile(loadLibrary(#1400405), "audio/mpeg"); |
6 | |
7 | ret "Test" + [[<iframe src="silence.mp3" allow="autoplay" id="audio"></iframe>]] + hscript([[ |
8 | setTimeout(function() { |
9 | if (window.workerRequestedSound == null) { |
10 | console.log("Loading worker requested sound"); |
11 | window.workerRequestedSound = new Audio("https://botcompany.de/files/1400404/worker-requested.mp3"); |
12 | } |
13 | console.log("Playing worker requested sound"); |
14 | window.workerRequestedSound.play(); |
15 | }, 3000); |
16 | ]]); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028536 |
Snippet name: | Audio AutoPlay Hack Test (doesn't work anymore) |
Eternal ID of this version: | #1028536/6 |
Text MD5: | 32618f97a59e61a3de8ca8216e973a68 |
Transpilation MD5: | be9e8c7cb63ae05d4b145236fc5054c8 |
Author: | stefan |
Category: | javax / web |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-25 13:53:23 |
Source code size: | 607 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 299 / 860 |
Version history: | 5 change(s) |
Referenced in: | [show references] |