Fix Voiceforge

Quick and dirty monkeypatch for the VoiceForge demo page requesting an HTTP version of JQuery.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name    Fix Voiceforge
// @include https://www.voiceforge.com/*
// @description Quick and dirty monkeypatch for the VoiceForge demo page requesting an HTTP version of JQuery.
// @version 1
// @namespace https://greasyfork.org/users/200317
// ==/UserScript==

(function(s) {
  r = new XMLHttpRequest(); // yep, really
  r.addEventListener("load", (function() {
  	e = document.createElement('script');
    e.type = 'text/javascript'; // just to be safe
    // paste the body of newly-requested jquery next to the script that uses it; this is a workaround because the site's
    // script already runs after the bogus plaintext request is made and errors out because it got blocked by HSTS
    e.innerHTML = this.responseText + document.querySelectorAll("body > script:nth-child(8)")[0].innerHTML;
    s.parentNode.insertBefore(e, s);
  }));
  r.open("GET", s.getAttribute('src').replace('http', 'https')); // re-request jquery
	r.send();
}) (
  document.querySelectorAll("head > script:nth-child(4)")[0]
);