Unlock VIP Feature on VSTEP

Mở khóa tính năng VIP trên trang web VSTEP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Unlock VIP Feature on VSTEP
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Mở khóa tính năng VIP trên trang web VSTEP
// @author       Bạn
// @match        https://luyenthivstep.vn/*   // Thay bằng URL của trang web bạn
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Thay đổi loại tài khoản từ "Miễn phí" thành "VIP"
    const accountType = document.querySelector("div.list-group-item div.col-auto.fw-bold");
    if (accountType) {
        accountType.textContent = "VIP";
    } else {
        console.warn("Không tìm thấy loại tài khoản để thay đổi.");
    }

    // Xóa thông báo nâng cấp tài khoản
    const alertBox = document.querySelector(".alert.alert-danger");
    if (alertBox) {
        alertBox.remove();
    } else {
        console.warn("Không tìm thấy thông báo nâng cấp tài khoản.");
    }

    // Kích hoạt các nút bị khóa (nếu có)
    const buttons = document.querySelectorAll("a.btn-light");
    if (buttons.length > 0) {
        buttons.forEach((button) => {
            button.classList.remove("btn-light");
            button.classList.add("btn-primary");
            button.disabled = false; // Nếu bị vô hiệu hóa, kích hoạt lại
        });
    } else {
        console.warn("Không tìm thấy các nút bị khóa.");
    }

    // Thêm thông báo chào mừng VIP
    const vipNotice = document.createElement("div");
    vipNotice.textContent = "Chào mừng bạn đến với tài khoản VIP!";
    vipNotice.style.color = "green";
    vipNotice.style.textAlign = "center";
    vipNotice.style.marginTop = "10px";
    vipNotice.style.fontWeight = "bold";  // Thêm một chút để thông báo nổi bật
    document.body.prepend(vipNotice);

})();