Greasy Fork is available in English.

J-CAT HTML5

Use the site without having to install Adobe Flash Player.

Από την 22/04/2017. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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
});