J-CAT HTML5

Use the site without having to install Adobe Flash Player.

2017-04-22 기준 버전입니다. 최신 버전을 확인하세요.

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        J-CAT HTML5
// @description Use the site without having to install Adobe Flash Player.
// @namespace   swyter
// @match       *://www.j-cat.org/*/page/check/ind
// @match       *://www.j-cat.org/*/page/test_check
// @version     1
// @grant       none
// @ruffn-at    document-start
// ==/UserScript==

window.flashVersion = 9;

Object.defineProperty(window, "swfobject",
{
    value:
    {
        embedSWF: function(swf, target)
        {
            console.log(arguments);
            
            /* add an audio player to hear the sample questions */
            player = document.createElement("audio");
            player.src = 'http://www.j-cat.org/lib/soundChecker/soundtest.mp3';
            player.controls = true;
            
            /* add a fieldset container to wrap everything */
            field = document.createElement("fieldset");
            field.textContent = 'Click the play button to hear an audio sample.';
            
            if (!(target = document.getElementById(target)))
                chkEnv.soundNG();
            
            target.replaceWith(field);
            
            /* add the audio player to the fieldset */
            field.appendChild(player);
            
            /* add a confirmation button, too */
            button = document.createElement("button");
            button.textContent = 'Could you hear? Click here.';
            button.addEventListener('click', function()
            {
               /* call back the page when clicking and tell
                 it that we were successful */
               chkEnv.soundOK("6999");
            });
            
            field.appendChild(button);
        }
    },
    writable: false
});