KMF unlock

Remove region lock

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         KMF unlock
// @namespace    http://tampermonkey.net/
// @version      0.15
// @description  Remove region lock
// @include     *
// @author       mo
// @match        https://toefl.kmf.com/*
// @run-at       document-idle
// @grant        GM_log
// ==/UserScript==

(function() {
    /* TOEFL section */
    /* Remove blocking box */
    document.querySelectorAll('.shield-box').forEach(function(s){s.remove();});
    document.querySelectorAll('.login-cont').forEach(function(s){s.remove();});
    document.querySelectorAll('.blur').forEach(function(b){b.classList.remove('blur');});

    
    var observer = new MutationObserver(callback);
    observer.observe(document, {childList: true, attributes: true, characterData: true, subtree: true});
    function callback(changes, observer) {
        document.querySelectorAll('.login-cont').forEach(function(s){s.remove();});
        document.querySelectorAll('.blur').forEach(function(b){b.classList.remove('blur');});
    }    
    // Callback function to execute when mutations are observed

    // for (var targetNode in targetNodes) {
    //     // Callback function to execute when mutations are observed
    

    //     // Create an observer instance linked to the callback function
    //     var observer = new MutationObserver(callback);

    //     // Start observing the target node for configured mutations
    //     observer.observe(targetNode, config);
    // }

    /* Remove disable tab and text for mock section*/
    document.querySelectorAll('.tab-forbidden[data-type="PREP"]').forEach(function(e){e.classList.remove('tab-forbidden');});
})();