SAMissionReminder

Remind about mission when landing in South Africa. Disable mouse clicks until the correct text is entered

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         SAMissionReminder
// @namespace    bzzt
// @version      0.0.4
// @description  Remind about mission when landing in South Africa. Disable mouse clicks until the correct text is entered
// @author       bzzt [2465413]
// @match        *.torn.com/index.php
// @run-at       document-idle   // document-idle is the default run-at setting
// ==/UserScript==

(function() {
    'use strict';
    const country = document.getElementById('skip-to-content');
    if (country && country.innerText.match(/South Africa/)) {
        var blockingdiv = document.createElement('div');
        blockingdiv.style = 'background-color: rgba(127, 1, 1, 0.333); position: fixed; bottom: 0; left: 0; right: 0; top: 0; z-index:1000000';
        document.body.appendChild(blockingdiv);
        var chk = '';
        while (chk != 'mission') {
            chk = prompt('Remember the mission.\n\nType "mission"');
        }
        blockingdiv.parentNode.removeChild(blockingdiv);
    }
})();