docomo Personal Data Consent Auto-decline

「パーソナルデータの取扱いに関する同意事項」を自動的に拒否します。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @author         たかだか。/TKDK.
// @name           docomo Personal Data Consent Auto-decline
// @namespace      https://twitter.com/djtkdk_086969
// @description    「パーソナルデータの取扱いに関する同意事項」を自動的に拒否します。
// @include        https://datadashboard-agreement.front.smt.docomo.ne.jp/*
// @version        0.0.2.001
// @grant          none
// @license        MIT License; https://opensource.org/licenses/mit-license.php
// @homepage       https://twitter.com/djtkdk_086969
// @compatible     firefox
// @compatible     chrome
// ==/UserScript==

(function() {
    console.log("dPDCAD: Checking elements...");
    if (document.title.match(/パーソナルデータの取扱いに関する同意事項/)) {
        window.addEventListener ('DOMContentLoaded', checkElem());

        var mo =
            new MutationObserver(function(mutationEventList) {
                checkElem();
            });
        var mo_conf = {
            childList: true,
            attributes: true,
            characterData: false,
            subtree: true
        };
        mo.observe(document.querySelector('body'), mo_conf);
        checkElem();
    }
    function checkElem() {
        let declineButton = document.getElementById("backButton");
        if (declineButton !== null) {
            declineButton.click();
        }
    }
})();