移除秀米xiumi手机强制认证

Remove Xiumi Phone Requirement

// ==UserScript==
// @name               移除秀米xiumi手机强制认证
// @name:en            Remove Xiumi Phone Requirement
// @name:zh            移除秀米xiumi手机强制认证
// @name:zh-CN         移除秀米xiumi手机强制认证
// @namespace          https://www.github.com/KumaTea
// @namespace          https://greasyfork.org/en/users/169784-kumatea
// @version            0.2.1
// @description        Remove Xiumi Phone Requirement
// @description:en     Remove Xiumi phone requirement
// @description:zh     移除秀米xiumi手机强制认证
// @description:zh-cn  移除秀米xiumi手机强制认证
// @author             KumaTea
// @match              https://xiumi.us/
// @include            http://xiumi.us/*
// @include            https://xiumi.us/*
// @include            http://*.xiumi.us/*
// @include            https://*.xiumi.us/*
// ==/UserScript==

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
};

async function remele() {
    while (!document.getElementsByClassName('modal fade ng-isolate-scope tn-dialog-bind-phone in')[0]) {
        await sleep(1000);
    };
    document.getElementsByClassName('modal fade ng-isolate-scope tn-dialog-bind-phone in')[0].remove();
    document.getElementsByClassName('modal-backdrop fade in')[0].remove();

};

remele();