Cloudflare Rate Limit Refresher

Refreshes the CloudFlare rate limit page until you get to your destination

  1. // ==UserScript==
  2. // @name Cloudflare Rate Limit Refresher
  3. // @version 1.01
  4. // @description Refreshes the CloudFlare rate limit page until you get to your destination
  5. // @match *://*/*
  6. // @license MIT
  7. // @namespace cloudflareratelimitrefresher
  8. // ==/UserScript==
  9.  
  10. checkForErrorAndRefresh();
  11.  
  12. function checkForErrorAndRefresh() {
  13. var errorElement = document.getElementById('cf-error-details');
  14.  
  15. if (errorElement) {
  16. console.log('Error detected, refreshing page...');
  17. window.location.reload();
  18. } else {
  19. console.log('No error detected.');
  20. }
  21. }