// ==UserScript== // @name Reload 1337x.to // @namespace http://tampermonkey.net/ // @version 2024-01-28 // @description Reload when getting rate limited. // @author Jason // @match https://1337x.to/* // @icon https://www.google.com/s2/favicons?sz=64&domain=1337x.to // @grant none // ==/UserScript== (function() { 'use strict'; const DELAY = 1000 + (Math.random() * 2000); let header = document.querySelector('h1'); // Header is showing rate limited error. if(header.innerText.includes('1015')) { setTimeout(() => location.reload(), DELAY); } })();