Unlock VIP Feature on VSTEP

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

  1. // ==UserScript==
  2. // @name Unlock VIP Feature on VSTEP
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Mở khóa tính năng VIP trên trang web VSTEP
  6. // @author Bạn
  7. // @match https://luyenthivstep.vn/* // Thay bằng URL của trang web bạn
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Thay đổi loại tài khoản từ "Miễn phí" thành "VIP"
  15. const accountType = document.querySelector("div.list-group-item div.col-auto.fw-bold");
  16. if (accountType) {
  17. accountType.textContent = "VIP";
  18. } else {
  19. console.warn("Không tìm thấy loại tài khoản để thay đổi.");
  20. }
  21.  
  22. // Xóa thông báo nâng cấp tài khoản
  23. const alertBox = document.querySelector(".alert.alert-danger");
  24. if (alertBox) {
  25. alertBox.remove();
  26. } else {
  27. console.warn("Không tìm thấy thông báo nâng cấp tài khoản.");
  28. }
  29.  
  30. // Kích hoạt các nút bị khóa (nếu có)
  31. const buttons = document.querySelectorAll("a.btn-light");
  32. if (buttons.length > 0) {
  33. buttons.forEach((button) => {
  34. button.classList.remove("btn-light");
  35. button.classList.add("btn-primary");
  36. button.disabled = false; // Nếu bị vô hiệu hóa, kích hoạt lại
  37. });
  38. } else {
  39. console.warn("Không tìm thấy các nút bị khóa.");
  40. }
  41.  
  42. // Thêm thông báo chào mừng VIP
  43. const vipNotice = document.createElement("div");
  44. vipNotice.textContent = "Chào mừng bạn đến với tài khoản VIP!";
  45. vipNotice.style.color = "green";
  46. vipNotice.style.textAlign = "center";
  47. vipNotice.style.marginTop = "10px";
  48. vipNotice.style.fontWeight = "bold"; // Thêm một chút để thông báo nổi bật
  49. document.body.prepend(vipNotice);
  50.  
  51. })();