Redditblock

Redirects people back to what they were doing before they decided to browse Reddit from 8 AM to 7 PM inclusive.

Versione datata 21/11/2015. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name Redditblock
// @description Redirects people back to what they were doing before they decided to browse Reddit from 8 AM to 7 PM inclusive.
// @include https://*.reddit.com
// @include https://*.reddit.com/*
// @run-at document-start
// @version 0.0.1.20151121122513
// @namespace https://greasyfork.org/users/12417
// ==/UserScript==

// This whole code is meant to block Reddit from 9 AM to 6 PM

// For any further inquiries, please tell me at scratch.mit.edu/users/iamunknown2 or reddit/u/iamunknowntwo
var date1 = new Date();
var hours = date1.getHours();

if (hours >= 8 && hours <= 17) // If hours are 8 AM to 7 PM (inclusive)
{
    window.history.back();
}