Auto Increment Streaks

Tăng streaks tự động mỗi giây

  1. // ==UserScript==
  2. // @name Auto Increment Streaks
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Tăng streaks tự động mỗi giây
  6. // @author YourName
  7. // @match https://example.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. const streakElement = document.querySelector('#streak');
  15. if (streakElement) {
  16. setInterval(() => {
  17. let streak = parseInt(streakElement.textContent);
  18. streakElement.textContent = streak + 1;
  19. }, 1000); // Mỗi 1 giây
  20. } else {
  21. console.error('Không tìm thấy phần tử streaks!');
  22. }
  23. })();