Redditblock

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

21.11.2015 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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

// This whole code is meant to block Reddit from 7 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();
var day = date1.getDay();


if (hours >= 8 && hours <= 17 && day != 0 && day != 6) // If hours are 7 AM to 6 PM (inclusive) and not a weekend
{
    window.history.back(); // Get back to your work.
}