Created
May 20, 2018 17:42
-
-
Save cuylerstuwe/95165e9839d2e5b60c8ad2b263353b38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Allow MIDI in mTurk iFrames | |
| // @namespace salembeats | |
| // @version 1.2 | |
| // @description Sets the feature policy which allows MIDI in iFrames in Chrome 60-something+. | |
| // @author Cuyler Stuwe (salembeats) | |
| // @include https://worker.mturk.com/projects/3*/* | |
| // @grant none | |
| // ==/UserScript== | |
| document.querySelectorAll("iframe").forEach(iFrame => { | |
| iFrame.setAttribute("allow", iFrame.getAttribute("allow") + "; midi"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment