Nhập mã pin VPS SmartPro - vps.com.vn

15:49:24, 23/5/2021

As of 2021-05-23. See the latest version.

// ==UserScript==
// @name        Nhập mã pin VPS SmartPro - vps.com.vn
// @namespace   Violentmonkey Scripts
// @match       https://smartpro.vps.com.vn/v1/
// @grant       none
// @version     1.0
// @author      -
// @description 15:49:24, 23/5/2021
// ==/UserScript==

function setPin() {
    global.AccountPinCD = "Nhập mã pin tại đây"
}

function setTextAlign() {
  document.getElementById("right_price").style.textAlign = "left"
  document.getElementById("sohopdong").style.textAlign = "left"
}

// New Approach
// Overwrite console.log
console.stdlog = console.log.bind(console);
console.log = function(){
  console.stdlog.apply(console, arguments);
  if(arguments[0] === "Reg Success!") {
    setPin();
    setTextAlign();
  }
}

// // Legacy approach
// setTimeout(function main() {
//   setPin();
//   setTextAlign();
// }, 4000)