FreeBTC.info

Automatically reloads the page every 3

  1. // ==UserScript==
  2. // @name FreeBTC.info
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description Automatically reloads the page every 3
  6. // @author Alen
  7. // @match https://freebtc.info/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function reloadPage() {
  16. location.reload();
  17. }
  18.  
  19.  
  20. function clickRollButton() {
  21. setTimeout(function() {
  22. document.querySelector('button.px-6.py-3.bg-gradient-to-b.from-\\[\\#3399ff\\].hover\\:from-\\[\\#66b3ff\\].to-\\[\\#004d99\\].hover\\:to-\\[\\#0066cc\\].text-white.font-bold.rounded.w-36').click();
  23. }, 2000);
  24. }
  25.  
  26.  
  27. setInterval(reloadPage, 60 * 60 * 1000);
  28.  
  29.  
  30. window.addEventListener('load', clickRollButton);
  31. })();