mihai-stancu / Web filter

// ==UserScript==
// @name         Web filter
// @description  Displays a warning on specific websites.
//
// @author       Mihai Stancu <stancu.t.mihai@gmail.com>
// @namespace    http://mihai-stancu.ro/
//
// @version      0.1
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
//
// @include      http://*activenews.ro/*
// @include      http://*aflasitu.ro/*
// @include      http://*bitpress.ro/*
// @include      http://*blastingnews.com/*
// @include      http://*bn24.ro/*
// @include      http://*caplimpede.ro/*
// @include      http://*cocoon.ro/*
// @include      http://*comisarul.ro/*
// @include      http://*criticatac.ro/*
// @include      http://*cunoastelumea.ro/*
// @include      http://*cyd.ro/*
// @include      http://*dailynewsro.com/*
// @include      http://*dcnews.ro/*
// @include      http://*descrieri.ro/*
// @include      http://*doxologia.ro/*
// @include      http://*dzr.org.ro/*
// @include      http://*efemeride.ro/*
// @include      http://*exclusiv24.net/*
// @include      http://*expunere.com/*
// @include      http://*expunere.ro/*
// @include      http://*fluierul.ro/*
// @include      http://*gandeste.org/*
// @include      http://*glasul.info/*
// @include      http://*infoalert.ro/*
// @include      http://*infocivic.ro/*
// @include      http://*informatia.net/*
// @include      http://*inliniedreapta.net/*
// @include      http://*lovendal.ro/*
// @include      http://*napocanews.ro/*
// @include      http://*nasul.ro/*
// @include      http://*nasul.tv/*
// @include      http://*nationalisti.ro/*
// @include      http://*nedreptate.net/*
// @include      http://*nuv.ro/*
// @include      http://*obiectiv.info/*
// @include      http://*onlinereport.ro/*
// @include      http://*ortodox.md/*
// @include      http://*recentnews.ro/*
// @include      http://*reportervirtual.ro/*
// @include      http://*searchnewsglobal.wordpress.com/*
// @include      http://*secretele.com/*
// @include      http://*social-media-romania.eu/*
// @include      http://*soim.ro/*
// @include      http://*stiri-extreme.ro/*
// @include      http://*stirinefiltrate.ro/*
// @include      http://*stiripesurse.ro/*
// @include      http://*vremuritulburi.com/*
// @include      http://*vremuritulburi.ro/*
// @include      http://*wowbiz.ro/*
// @include      http://*yno.ro/*
// @include      http://*ziaristionline.ro/*
// ==/UserScript==
/* jshint -W097 */
'use strict';

var ms = {
	webFilter: {
		warning: function (text) {
			$('<h1>Web filter warning</h1>').css({
				position: 'absolute',
				left: 0,
				top: 0,
				zIndex: 99999999,

				width: $(window).width(),
				height: $(document).height(),
				margin: 0,
				padding: 0,
				border: 0,

				fontSize: '96px',
				lineHeight: '96px',
				textAlign: 'center',
				background: '#f00',
				color: '#fff',
				opacity: .9
			}).click(function(ev) {
				$(ev.target).remove();
			}).appendTo('body');
		}
	}
};

$(document).ready(ms.webFilter.warning);