Reddit Strike Redirect

Redirect away from Reddit if it's during the strike

// ==UserScript==
// @name         Reddit Strike Redirect
// @description  Redirect away from Reddit if it's during the strike
// @version      1.1
// @namespace    ScriptUnge-reddit
// @license      MIT
// @author       ScriptUnge
// @match        *.reddit.com/*
// ==/UserScript==

(function() {
    'use strict';
    const memeUrl = "https://i.imgflip.com/7ofik2.jpg";
    const today = new Date();
    const strikeYear = 2023;
    const strikeMonth = 5;
    const strikeStart = 12;
    const strikeDuration = 2; // strike duration in days (48 hours); increase at your own leisure

    if(
        today.getUTCFullYear() == strikeYear &&
        today.getUTCMonth() == strikeMonth &&
        today.getUTCDate() >= strikeStart &&
        today.getUTCDate() < (strikeStart + strikeDuration)
    ) {
        window.navigation.navigate(memeUrl);
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址