Skip to content

Instantly share code, notes, and snippets.

@cuylerstuwe
Created May 20, 2018 17:42
Show Gist options
  • Select an option

  • Save cuylerstuwe/95165e9839d2e5b60c8ad2b263353b38 to your computer and use it in GitHub Desktop.

Select an option

Save cuylerstuwe/95165e9839d2e5b60c8ad2b263353b38 to your computer and use it in GitHub Desktop.
// ==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