Sleazy Fork is available in English.

prawojazdy360.pl

try to take over the world!

נכון ליום 17-07-2019. ראה הגרסה האחרונה.

// ==UserScript==
// @name         prawojazdy360.pl
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       Borowy Alan
// @match        *://www.prawo-jazdy-360.pl/kurs*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const video = document.getElementById('media-video')
    const yesButton = document.getElementById('Answers-0')
    const noButton = document.getElementById('Answers-1')
    const nextQuestionButton = document.getElementById('btn-next')

    // video.scrollIntoView();

    document.onkeyup = function(e) {
        if (e.code == 'KeyP') {
            video.focus()
            video.play()
        } else if (e.code == 'KeyT') {
            yesButton.click()
            saveAnswer()
        } else if (e.code == 'KeyN') {
            noButton.click()
            saveAnswer()
        } else if (e.code == 'Enter') {
            nextQuestionButton.click()
        }
    };
})();