Guest User

auto refresh script

a guest
Jun 2nd, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Auto click refresh button
  3. // @namespace   Violentmonkey Scripts
  4. // @match       https://8chan.se/*
  5. // @match       https://8chan.cc/*
  6. // @grant       none
  7. // @version     1.0
  8. // @author      anon
  9. // ==/UserScript==
  10.  
  11.  
  12. (function() {
  13.     'use strict';
  14.  
  15.     // Function to click the refresh button
  16.     function clickRefreshButton() {
  17.         const refreshButton = document.getElementById('refreshButton');
  18.         if (refreshButton) {
  19.             refreshButton.click();
  20.         }
  21.     }
  22.  
  23.     // Initial click
  24.     clickRefreshButton();
  25.  
  26.     // Refresh every 5 seconds
  27.     setInterval(clickRefreshButton, 5000);
  28. })();
Advertisement
Add Comment
Please, Sign In to add comment