OrlandoKatana / Script Monitorizare

// ==UserScript==
// @name         Script Monitorizare
// @version      1.7.4
// @author       Orlando
// @require      https://code.jquery.com/jquery-1.10.2.js
// @include      http://old.monitorizare.mediafax.biz/editorweb/*
// @include      http://monitorizare.mediafax.biz/app/*
// @run-at       document-start
// @updateURL    https://openuserjs.org/meta/OrlandoKatana/Script_Monitorizare.meta.js
// @downloadURL  https://openuserjs.org/install/OrlandoKatana/Script_Monitorizare.user.js
// @icon         http://www.comunicate.mediafax.biz/App_Themes/Images/favicon.ico
// @license MIT
// ==/UserScript==

// ---------- GENERAL JS ----------

const changeFavicon = link => {
    let $favicon = document.querySelector('link[rel="icon"]');
    // If a <link rel="icon"> element already exists,
    // change its href to the given link.
    if ($favicon !== null) {
        $favicon.href = link;
        // Otherwise, create a new element and append it to <head>.
    } else {
        $favicon = document.createElement("link");
        $favicon.rel = "icon";
        $favicon.href = link;
        document.head.appendChild($favicon);
    }
};

changeFavicon("http://www.comunicate.mediafax.biz/App_Themes/Images/favicon.ico");


(function() {var css = "";

             // ---------- ALL PAGES ----------

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/") === 0))
                 window.onload = function myFunction() {
                     var t = document.createElement("copyright");
                     t.innerHTML = "[ Designed by Orlando | v 1.7 ]";
                     t.onclick = function() {
                         var KICKASSVERSION='2.0';
                         var s = document.createElement('script');
                         s.type='text/javascript';
                         document.body.appendChild(s);
                         s.src='//hi.kickassapp.com/kickass.js';void(0);
                     };


                     var read = document.getElementsByClassName("meniu_sus")[0];
                     read.appendChild(t);



                     var btn = document.createElement("button");
                     btn.innerHTML = "Grilaj Web";
                     read.appendChild(btn);
                     btn.id = "prioritati";
                     btn.type = "button";
                     btn.onclick = function() {
                         window.open("http://www.lunasolutions.biz/monitorizareweb/", '_blank'); return false;
                     };


                     // ---------- Scan OLD to NEW ----------


                     var oldurl = document.querySelectorAll("a[href^='http://old.monitorizare.mediafax.biz/Pages/Public/viewps.aspx']");
                     var getoldurl;
                     for (getoldurl = 0; getoldurl < oldurl.length; getoldurl++) {
                         oldurl[getoldurl].id = "urlnew";
                     }

                     $("a#urlnew")
                         .each(function()
                               {
                         this.href = this.href.replace(/^http:\/\/old\.monitorizare\.mediafax\.biz\/Pages\/Public\/viewps.aspx\?id/g, "http://monitorizare.mediafax.biz/app/pozitionareExtern.aspx?artId");
                     });


                     // ---------- END Scan OLD to NEW ----------


                     var btnc = document.createElement("button");
                     btnc.innerHTML = "Concedii Web";
                     read.appendChild(btnc);
                     btnc.id = "concedii";
                     btnc.type = "button";
                     btnc.onclick = function() {
                         window.open("http://www.lunasolutions.biz/monitorizareweb/concedii/", '_blank'); return false;
                     };

                     var btnp = document.createElement("button");
                     btnp.innerHTML = "Pontaj Web";
                     read.appendChild(btnp);
                     btnp.id = "pontaj";
                     btnp.type = "button";
                     btnp.onclick = function() {
                         window.open("http://www.lunasolutions.biz/monitorizareweb/pontajlunar/", '_blank'); return false;
                     };


                     document.getElementById("chkArtNuAuEvenimente").checked = false;
                     document.getElementById("chkSurseNegrupatePeEv").checked = true;


                     var addev = document.querySelector("input[onclick^=reDirAddEvent]");
                     addev.id = "addEvent";
                     document.getElementById("addEvent").value = "Creare ID Eveniment Nou";
                 };

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/") === 0))
                 css += [


                     "	#txtEventEndDate {		",
                     "	        border-style: ridge;		",
                     "	border-width: 2px;		",
                     "	border-color: black;		",
                     "	}		",

                     "	[id^=\"txtEvName\"] {	",
                     "		",
                     "	width: 700px !important;	",
                     "	max-width: 700px !important;	",
                     "		",
                     "	}	",



                     "	#txtEventStartDate {		",
                     "	        border-style: ridge;		",
                     "	border-width: 2px;		",
                     "	border-color: black;		",
                     "	}		",

                     "	a[href^=\"stergeweb\"]		",
                     "	{		",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #ff9999, #ff0000) repeat scroll 0 0;		",
                     "	    border: 1px solid #666666;		",
                     "	    border-radius: 3px;		",
                     "	    color: #000000;		",
                     "	    cursor: not-allowed;		",
                     "	    font-weight: bold;		",
                     "	    height: 20px;		",
                     "	    text-shadow: 1px 1px 0 #dddddd;		",
                     "	padding: 2px;		",
                     "	}		",

                     "	.btnHideAllEv:after {		",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;		",
                     "	    border: 2px outset #990000;		",
                     "	    border-radius: 8px;		",
                     "	    color: #ffffff;		",
                     "	    content: \"Restrange Evenimentele\";		",
                     "	    cursor: pointer;		",
                     "	    font-size: 14px;		",
                     "	    font-weight: bold;		",
                     "	    height: 30px;		",
                     "	    right: -30%;		",
                     "	    padding: 4px 10px;		",
                     "	    position: relative;		",
                     "	    text-shadow: 1px 1px 0 #000000;		",
                     "	    visibility: visible;		",
                     "	    width: 120px;		",
                     "	}		",
                     "			",
                     "			",
                     "	.btnHideAllEv {		",
                     "			",
                     "	visibility: hidden;		",
                     "	}		",
                     "			",

                     "	.btnHideAllEv:hover:after {		",
                     "			",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;		",
                     "	    border: 2px inset #990000;		",
                     "			",
                     "	}		",

                     "	a[target=\"poza\"] {		",
                     "	   align-items: center;		",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;		",
                     "	    border: 1px solid black;		",
                     "	    border-radius: 6px;		",
                     "	    color: #111111;		",
                     "	    cursor: pointer;		",
                     "	    display: table-cell;		",
                     "	    font-weight: bold;		",
                     "	    height: auto;		",
                     "	    margin: auto;		",
                     "	    padding: 3px 8px;		",
                     "	    place-content: center;		",
                     "	    place-self: center;		",
                     "	    text-align: center;		",
                     "	    text-shadow: 1px 1px 0 #dddddd;		",
                     "	    vertical-align: middle;		",
                     "	    white-space: nowrap;		",
                     "	    width: 10%;		",
                     "	text-decoration: none;		",
                     "	}		",

                     "	a[href^=\"prelucratArticle\"] {	",
                     "	visibility: hidden;	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #80ff80, #009933) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 4px;	",
                     "	    color: #000000;	",
                     "	    cursor: url(\"http://icons.iconarchive.com/icons/yusuke-kamiyamane/fugue/16/thumb-up-icon.png\"), pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 16px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 4px;	",
                     "	display: inline-block;	",
                     "	}	",

                     "	.btnShowHideEv {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;	",
                     "	    border: 2px outset #990000;	",
                     "	    border-radius: 4px;	",
                     "	    color: white;	",
                     "	    cursor: pointer;	",
                     "	    padding: 1px;	",
                     "	    text-decoration: none;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	font-weight: bold;	",
                     "	}	",

                     "	.btnShowHideEv:hover {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "	    border: 2px inset #990000;	",
                     "	    border-radius: 4px;	",
                     "	    color: white !important;	",
                     "	    cursor: pointer;	",
                     "	    padding: 1px;	",
                     "	    text-decoration: none;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	font-weight: bold;	",
                     "	}	",


                     "	a[href^=\"fullText\"] {	",
                     "	    align-items: center;	",
                     "	    align-self: center;	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 2px;	",
                     "	    color: #111111;	",
                     "	    cursor: pointer;	",
                     "	    display: table-cell;	",
                     "	    font-weight: bold;	",
                     "	    height: auto;	",
                     "	    margin: auto;	",
                     "	    padding: 2px 6px;	",
                     "	    place-content: center;	",
                     "	    text-align: center;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	    vertical-align: middle;	",
                     "	    white-space: nowrap;	",
                     "	    width: 20%;	",
                     "	}	",


                     "	a[href^=\"textEditWeb\"]		",
                     "	{		",
                     "	visibility: hidden;		",
                     "	   background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;		",
                     "	    border: 1px solid #666666;		",
                     "	    border-radius: 3px;		",
                     "	    color: #111111;		",
                     "	    cursor: pointer;		",
                     "	    font-weight: bold;		",
                     "	    height: 16px;		",
                     "	    text-shadow: 1px 1px 0 #dddddd;		",
                     "	padding: 4px;		",
                     "	display: inline-block;		",
                     "	    float: left;		",
                     "	}		",

                     "	.btnShowAllEv:after {		",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;		",
                     "	    border: 2px outset #990000;		",
                     "	    border-radius: 8px;		",
                     "	    color: #ffffff;		",
                     "	    content: \"Extinde Evenimentele\";		",
                     "	    cursor: pointer;		",
                     "	    font-size: 14px;		",
                     "	    font-weight: bold;		",
                     "	    height: 30px;		",
                     "	    left: 30%;		",
                     "	    padding: 4px 10px;		",
                     "	    position: relative;		",
                     "	    text-shadow: 1px 1px 0 #000000;		",
                     "	    visibility: visible;		",
                     "	    width: 120px;		",
                     "	}		",
                     "			",
                     "			",
                     "	.btnShowAllEv {		",
                     "			",
                     "	visibility: hidden;		",
                     "	}		",
                     "			",
                     "			",
                     "			",
                     "	.btnShowAllEv:hover:after {		",
                     "			",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;		",
                     "	    border: 2px inset #990000;		",
                     "			",
                     "	}		",




                     "	a[href^=\"rejectArticle.aspx?tip=0\"]		",
                     "	{		",
                     "	visibility: hidden;		",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #ff9999, #ff0000) repeat scroll 0 0;		",
                     "	    border: 1px solid #666666;		",
                     "border-radius: 4px;		",
                     "color: #000000;		",
                     "cursor: url(\"http://icons.iconarchive.com/icons/yusuke-kamiyamane/fugue/16/thumb-icon.png\"), pointer;		",
                     "font-weight: bold;		",
                     "height: 16px;		",
                     "text-shadow: 1px 1px 0 #dddddd;",
                     "padding: 4px;",
                     "display: inline-block;",
                     "float: left;",
                     "}",



                     "	a[href^=\"textEditWeb\"]:after		",
                     "	{		",
                     "	content:'Modifica Titlul'; 		",
                     "	    visibility: visible;		",
                     "	   background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;		",
                     "	    border: 1px solid #666666;		",
                     "	    border-radius: 4px;		",
                     "	    color: #111111;		",
                     "	    cursor: pointer;		",
                     "	    font-weight: bold;		",
                     "	    height: 16px;		",
                     "	    text-shadow: 1px 1px 0 #dddddd;		",
                     "	padding: 5px;		",
                     "	margin-left: -85px;		",
                     "	}		",



                     "	#txtCuvinteCheie {		",
                     "	        border-style: ridge;		",
                     "	border-width: 3px;		",
                     "	border-color: black;		",
                     "	}		",


                     "body {",
                     "background: #f8f8f8 url(\"http://monitorizare.mediafax.biz/Site/images/bg-page.gif\") repeat scroll 0 0;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table {",
                     "font-weight: bold;",
                     "margin: 2% auto auto;",
                     "border-collapse: collapse;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr {",
                     "border: 2px ridge black;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr td {",
                     "padding: 4px;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr td #btnUpdate {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 4px;",
                     "color: white;",
                     "cursor: pointer;",
                     "padding: 4px 20px;",
                     "text-decoration: none;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "font-weight: bold;",
                     " margin-left: 27%;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr td #btnUpdate:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr td #btnClose {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 4px;",
                     "color: white;",
                     "cursor: pointer;",
                     "padding: 4px 20px;",
                     "text-decoration: none;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "font-weight: bold;",
                     " margin-left: 1%;",
                     "}",

                     "form[action^=\"textEdit.aspx?id\"] * table tbody tr td #btnClose:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "}",


                     "#txtTextEditRo {",
                     "overflow: auto;",
                     "resize: vertical;",
                     "height: 260px;",
                     "}",

                     "#txtTextEditRoNumeEv {",
                     "overflow: auto;",
                     "resize: vertical;",
                     "}",

                     "#txtTextEditEnNumeEv {",
                     "overflow: auto;",
                     "resize: vertical;",
                     "}",

                     "#txtTextEditEn {",
                     "overflow: auto;",
                     "resize: vertical;",
                     "height: 260px;",
                     "}",

                     "input[value^=\"Creare ID Eveniment Nou\"] {	",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #f3f3f3, #000000) repeat fixed 0 0;	",
                     "border: 3px outset #990000;	",
                     "border-radius: 0 0 25px 25px;	",
                     "color: #000000;	",
                     "cursor: pointer;	",
                     "display: block;	",
                     "font-family: arial;	",
                     "	    font-size: 14px;	",
                     "	    font-weight: bold;	",
                     "height: 44px;	",
                     "margin: auto auto auto -15%;	",
                     "	    padding: 4px 10px;	",
                     "position: fixed;	",
                     "text-decoration: none;	",
                     "text-shadow: 1px 1px 0 #ffffff;	",
                     "text-transform: capitalize;	",
                     "top: 35px;",
                     "visibility: visible !important;	",
                     "width: 30%;	",
                     "transition: background 0.3s ease-out 0s, height 0.3s ease-out 0s, color 0.3s ease-out 0s, border 0.3s ease-out 0s, text 0.3s ease-out 0s, width 0.3s ease-out 0s, margin 0.3s ease-out 0s;	",
                     "left: 50%;",
                     "}",

                     "	input[value^=\"Creare ID Eveniment Nou\"]:hover {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "	    border: 3px inset #990000;	",
                     "	height: 58px;	",
                     "	color: #ffffff;	",
                     "	text-shadow: 1px 1px 0 #000000;	",
                     "	width: 40%;	",
                     "	margin: auto auto auto -20%;	",
                     "	border-radius: 0 0 30px 30px;	",
                     "}",

                     ".meniu_sus a {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "background: rgba(0, 0, 0, 0) linear-gradient(#d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 6px;",
                     "color: #ffffff;",
                     "cursor: pointer;",
                     "	    font-weight: bold;	",
                     "	    padding: 4px 10px;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	}	",

                     "	#calEventEndDate_popupDiv	",
                     "	{	",
                     "	z-index: 1;	",
                     "	}	",
                     "	copyright {	",
                     "	       color: #f0f0f0;	",
                     "	    font-size: 15px;	",
                     "	    font-weight: bold;	",
                     "	    letter-spacing: -1px;	",
                     "	    margin-left: 50px;	",
                     "	}	",
                     "	#calEventStartDate_popupDiv	",
                     "	{	",
                     "	z-index: 1;	",
                     "	}	",


                     ".meniu_sus a:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "background: rgba(0, 0, 0, 0) linear-gradient(#dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "}",

                     "	.form_td {	",
                     "	    padding-right: 10px;	",
                     "		",
                     "	}	",
                     "		",
                     "		",
                     "	.form {	",
                     "	       padding: 10px 0 10px 10px;	",
                     "	}	",

                     "	#prioritati {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;	",
                     "	    border: 2px outset #990000;	",
                     "	    border-radius: 6px;	",
                     "	    color: #ffffff;	",
                     "	    cursor: pointer;	",
                     "	    float: right;	",
                     "	    font-family: arial;	",
                     "	    font-size: 14px;	",
                     "	    font-weight: bold;	",
                     "	    padding: 4px 10px;	",
                     "	    position: fixed;	",
                     "	    right: 10px;	",
                     "	    text-decoration: none;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	    text-transform: capitalize;	",
                     "	    top: 2px;	",
                     "	}	",
                     "		",
                     "	#prioritati:hover {	",
                     "		",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "	    border: 2px inset #990000;	",
                     "		",
                     "	}	",
                     "		",
                     "		",
                     "	#concedii {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;	",
                     "	    border: 2px outset #990000;	",
                     "	    border-radius: 6px;	",
                     "	    color: #ffffff;	",
                     "	    cursor: pointer;	",
                     "	    float: right;	",
                     "	    font-family: arial;	",
                     "	    font-size: 14px;	",
                     "	    font-weight: bold;	",
                     "	    padding: 4px 10px;	",
                     "	    position: fixed;	",
                     "	    right: 115px;	",
                     "	    text-decoration: none;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	    text-transform: capitalize;	",
                     "	    top: 2px;	",
                     "	}	",
                     "		",
                     "	#concedii:hover {	",
                     "		",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "	    border: 2px inset #990000;	",
                     "		",
                     "	}	",
                     "		",
                     "		",
                     "		",
                     "	#pontaj {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;	",
                     "	    border: 2px outset #990000;	",
                     "	    border-radius: 6px;	",
                     "	    color: #ffffff;	",
                     "	    cursor: pointer;	",
                     "	    float: right;	",
                     "	    font-family: arial;	",
                     "	    font-size: 14px;	",
                     "	    font-weight: bold;	",
                     "	    padding: 4px 10px;	",
                     "	    position: fixed;	",
                     "	    right: 246px;	",
                     "	    text-decoration: none;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	    text-transform: capitalize;	",
                     "	    top: 2px;	",
                     "	}	",
                     "		",
                     "	#pontaj:hover {	",
                     "		",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;	",
                     "	    border: 2px inset #990000;	",
                     "		",
                     "	}	",

                     "	input[type=\"checkbox\"] {	",
                     "	cursor: pointer;	",
                     "	margin: 2px;	",
                     "	    outline: 1px solid #990000;	",
                     "}",

                     "#ddlDomains {",
                     "border-style: ridge;",
                     "border-width: 3px;",
                     "border-color: #aaaaaa;",
                     "box-shadow: 0 0 8px 1px black;",
                     "}",

                     "	ul.token-input-list-facebook 	",
                     "	{	",
                     "	    border: 3px ridge black !important;	",
                     "	}	",

                     "#ddlLanguage {",
                     "border-style: ridge;",
                     "border-width: 3px;",
                     "border-color: #aaaaaa;",
                     "box-shadow: 0 0 8px 1px black;",
                     "margin-top: 4px;",
                     "}",

                     "a[href^=\"prelucratArticle\"]:after",
                     "{",
                     "content:'Prelucrat?';",
                     "visibility: visible;",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #80ff80, #009933) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 4px;	",
                     "	    color: #000000;	",
                     "	    cursor: url(\"http://icons.iconarchive.com/icons/yusuke-kamiyamane/fugue/16/thumb-up-icon.png\"), pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 16px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 5px;	",
                     "	margin-left: -40px;	",
                     "	}	",
                     "	a[href^=\"rejectArticle.aspx?tip=1\"]	",
                     "	{	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #ff9999, #ff0000) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 4px;	",
                     "	    color: #000000;	",
                     "	    cursor: url(\"http://icons.iconarchive.com/icons/yusuke-kamiyamane/fugue/16/thumb-icon.png\"), pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 16px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 4px;	",
                     "	display: inline-block;	",
                     "	    float: left;	",
                     "	}	",
                     "	a[id^=\"previewPage\"] {	",
                     "	background: none !important;	",
                     "	font-weight: bold !important;	",
                     "	color: #000000 !important;	",
                     "	padding: 1px !important;	",
                     "	margin: auto !important;	",
                     "	text-decoration: underline !important;	",
                     "	}	",
                     "	input[id^=\"chkArt_\"] {	",
                     "	visibility: hidden;	",
                     "	}	",
                     "	.meniu_sus {	",
                     "	position: sticky;	",
                     "	top: 0px;	",
                     "	border-bottom: 4px ridge #990000;	",
                     "	z-index: 1;	",
                     "	height: 14px;	",
                     "	line-height: 130%;	",
                     "}",

                     ".btnShowHide {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "	    border: 1px solid black;	",
                     "	    border-radius: 6px;	",
                     "	    color: #111111;	",
                     "	    cursor: cell !important;	",
                     "	    font-weight: bold;	",
                     "	    height: 20px;	",
                     "	    padding: 3px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	}	",
                     "	.tabel_sh td {	",
                     "	max-width: 750px;	",
                     "	background-color: white;	",
                     "	    padding: 6px;	",
                     "	}	",

                     "	#lstSourceType {	",
                     "	    height: 180px !important;	",
                     "	    width: 115px !important;	",
                     "	border-style: ridge;	",
                     "	border-width: 5px;	",
                     "	border-color: black;	",
                     "	}	",
                     "	hr {	",
                     "		",
                     "	display: none;	",
                     "		",
                     "	}	",
                     "	[id^=\"div_\"] {	",
                     "		",
                     "	max-width: 410px !important;	",
                     "		",
                     "	}	",

                     "	a[href^=\"rejectArticle.aspx?tip=0\"]:after	",
                     "	{	",
                     "	content:'Reject!'; 	",
                     "	    visibility: visible;	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #ff9999, #ff0000) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 4px;	",
                     "	    color: #000000;	",
                     "	    cursor: url(\"http://icons.iconarchive.com/icons/yusuke-kamiyamane/fugue/16/thumb-icon.png\"), pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 16px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 5px;	",
                     "	margin-left: -36px;	",
                     "	}	",




                 ].join("\n");


             // ---------- LOGIN PAGE ----------

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/login.aspx") === 0))
             {
                 document.title = "Login Corectura";
                 document.getElementById("txtUsername").placeholder = "User";
                 document.getElementById("txtPassword").placeholder = "Parola";
             }

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/login.aspx") === 0))
                 css += [

                     "#form1 > div:last-of-type {",
                     "border: 3px solid #990000;",
                     "margin: 60px auto auto;",
                     "padding: 20px;",
                     "font-size: 0;",
                     "border-radius: 16px;",
                     "background-color: #f0f0f0;",
                     "box-shadow: 0 0 10px 1px black;",
                     "}",

                     "input[type=text], input[type=password] {",
                     "width: 100%;",
                     "padding: 5px 20px;",
                     "margin: 8px 0;",
                     "display: inline-block;",
                     "border: 2px ridge #990000;",
                     "box-sizing: border-box;",
                     "}",

                     "form {",
                     "margin: auto;",
                     "width: 300px;",
                     "}",


                     "input[type=\"text\"], textarea {",
                     "       color: #990000;",
                     "  font-weight: bold;",
                     "}",

                     "input[type=\"text\"]::-moz-placeholder {",
                     "color: #666666;",
                     "font-weight: bold;",
                     "}",

                     "input[type=\"password\"], textarea {",
                     "       color: #990000;",
                     "  font-weight: bold;",
                     "}",

                     "input[type=\"password\"]::-moz-placeholder {",
                     "color: #666666;",
                     "font-weight: bold;",
                     "}",


                     "#btnLogin {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "background: rgba(0, 0, 0, 0) linear-gradient(#d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 4px;",
                     "color: #ffffff;",
                     "cursor: pointer;",
                     "font-weight: bold;",
                     "height: 32px;",
                     "margin: 8px;",
                     "padding: 1px;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "width: 130px;",
                     "}",


                     "#btnLogin:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "background: rgba(0, 0, 0, 0) linear-gradient(#dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "border-radius: 4px;",
                     "color: #ffffff;",
                     "cursor: pointer;",
                     "font-weight: bold;",
                     "padding: 1px;",
                     "text-shadow: 1px 1px 0 #000000;",

                     "}",

                 ].join("\n");

             // ---------- HOME PAGE ----------

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/index.aspx") === 0))
                 document.title = "Corectura Monitorizare";


             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/index.aspx") === 0))
                 css += [

                     "p:last-of-type {",
                     "visibility: hidden;",
                     "}",

                     "p:last-of-type::after {",
                     "color: #990000;",
                     "content: \"“Imi place sa muncesc”, said no one ever...\";",
                     "font-size: 150%;",
                     "font-weight: bold;",
                     "left: 35%;",
                     "margin: auto;",
                     "position: absolute;",
                     "top: 15%;",
                     "visibility: visible;",
                     "width: 600px;",
                     "}",

                 ].join("\n");

             // ---------- PAGINA SCAN ----------

             if (false || (document.location.href.indexOf("http://monitorizare.mediafax.biz/app/pozitionareExtern.aspx") === 0))
                 document.title = "Scan Articol";


             if (false || (document.location.href.indexOf("http://monitorizare.mediafax.biz/app/pozitionareExtern.aspx") === 0))
                 css += [

                     ".fancybox-content .item-photo {",
                     "height: 650px;",
                     "}",


                 ].join("\n");


             // ---------- Modificare Eveniment - Corectura Evenimente ----------

             var urlm = "http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/textEdit.aspx";

             if (document.location.href.replace(location.search, '')==urlm)
             {
                 document.title = "Modificare Eveniment";
             }

             // ---------- Corectura Web ----------


             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/articole.aspx") === 0))
                 document.title = "Corectura Web";

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/articole.aspx") === 0))

                 $(document).ready(function() {

                     // ---------- Scroll UP START ----------

                     var topsb = document.createElement("button");
                     document.body.appendChild(topsb);
                     topsb.id = "scrollup";
                     topsb.title = "Scroll în sus";
                     topsb.onclick = function() {
                         document.body.scrollTop = 0; // For Chrome, Safari and Opera
                         document.documentElement.scrollTop = 0; // For IE and Firefox
                     } ;


                     window.onscroll = function() {scrollFunction();};

                     function scrollFunction() {
                         if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                             document.getElementById("scrollup").style.display = "block";
                         } else {
                             document.getElementById("scrollup").style.display = "none";
                         }
                     }


                     // ---------- Scroll UP END ----------


                     $('#txtCuvinteCheie').keydown(function(event) {
                         if (event.keyCode == 13) {
                             document.getElementById("btnCauta").click();
                             return false;     }
                     });
                 });



             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/articole.aspx") === 0))
                 css += [

                     "#scrollup {",
                     "  display: none;",
                     "  position: fixed;",
                     "height: 50px;",
                     "width: 50px;",
                     "  bottom: 40px;",
                     "  right: 15px;",
                     "  z-index: 99;",
                     "  outline: none;",
                     "  cursor: pointer;",
                     "  padding: 15px;",
                     "  border-radius: 10px;",
                     "  border: 3px ridge #990000;",
                     "  font-size: 14px;",
                     "  font-weight: bold;",
                     "background-image: url(\"https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/actions/agt_uninstall-product.png\");",
                     "    background-color: white;",
                     "background-repeat: no-repeat;",
                     "    background-size: 80%;",
                     "    background-position: center;",
                     "}",

                     "#scrollup:hover {",
                     "  background-color: #cccccc;",
                     "}",


                     "#lstSourceType > option[value=\"101\"] {",
                     " font-size: 0;",
                     "}",

                     "	.btnSeteazaEvent {	",
                     "	    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;	",
                     "	    border: 1px solid #666666;	",
                     "	    border-radius: 3px;	",
                     "	    color: #111111;	",
                     "	    cursor: pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 16px;	",
                     "	    text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 4px;	",
                     "position: absolute;",
                     "margin: 15px 1px 1px;",
                     "}",

                     ".tabel-rezultate table {",
                     "border: 3px ridge;",
                     "}",

                     "#lstSubdomains {",
                     "height: 135px !important;",
                     "border-style: ridge;",
                     "border-width: 5px;",
                     "border-color: #aaaaaa;",
                     "box-shadow: 0 0 10px 2px black;",
                     "}",

                     ".article {",
                     "border: 3px ridge #787878;",
                     "background-color: white;	",
                     "}",

                     "	#imgEventEndDate {	",
                     "	        display: inline-block;	",
                     "	    padding: 1px;	",
                     "	    vertical-align: middle;	",
                     "	    width: 8%;	",
                     "	}	",
                     "	a[id^=\"nextPage\"] {	",
                     "	background: none !important;	",
                     "	font-weight: bold !important;	",
                     "	color: #000000 !important;	",
                     "	padding: 1px !important;	",
                     "	}	",

                     "	#navigation-center {	",
                     "	border: 3px ridge #666666;	",
                     "	font-weight: bold;	",
                     "	width: 300px;	",
                     "	padding: 1px;	",
                     "	text-align: center;	",
                     "	display: inline-block;	",
                     "	margin: auto;	",
                     "	float: none;	",
                     "	color: red;	",
                     "	}	",
                     "	#imgEventStartDate {	",
                     "	        display: inline-block;	",
                     "	    padding: 1px;	",
                     "	    vertical-align: middle;	",
                     "	    width: 8% !important;	",
                     "	}	",

                     "	.form {	",
                     "	border-bottom: 4px ridge #b3b3b3;	",
                     "	}	",

                     "	#navigation-left {	",
                     "	font-weight: bold;	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;	",
                     "	    border: 3px outset #666666;	",
                     "	    border-radius: 3px;	",
                     "	    color: #111111;	",
                     "	    cursor: pointer;	",
                     "	            text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 2px;	",
                     "	float: none;	",
                     "	margin: auto !important;	",
                     "	display: inline-block;	",
                     "	text-align: center;	",
                     "	}	",
                     "	#lstKeywords {	",
                     "	    height: 146px !important;	",
                     "	    border-style: ridge;	",
                     "	border-width: 5px;	",
                     "	border-color: black;	",
                     "	}	",
                     "	#navigation-right {	",
                     "	font-weight: bold;	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;	",
                     "	    border: 3px outset #666666;	",
                     "	    border-radius: 3px;	",
                     "	    color: #111111;	",
                     "	    cursor: pointer;	",
                     "	          text-shadow: 1px 1px 0 #dddddd;	",
                     "	padding: 2px;	",
                     "	float: none;	",
                     "	margin: auto !important;	",
                     "	display: inline-block;	",
                     "	text-align: center;	",
                     "	}	",

                     "	#navigation {	",
                     "	margin: auto;	",
                     "	text-align: center;	",
                     "	position: sticky;	",
                     "	        width: 99%;	",
                     "	background-color: #e6e6e6;	",
                     "	    bottom: 0;	",
                     "	    display: block;	",
                     "	border-color: #787878;	",
                     "	    border-style: ridge;	",
                     "	    border-width: 2px 3px;	",
                     "	padding: 3px;	",
                     "	}	",

                     "	input[onclick^=\"reDirAddEvent\"]	",
                     "	{	",
                     "	visibility: hidden;	",
                     "		",
                     "	}	",



                     "#lstSourceType > option[value=\"101\"]::before {",
                     "content: \"Agregatoare\";",
                     "font-size: 12px;",
                     "}",

                     "#lstSourceType > option[value=\"301\"] {",
                     "font-size: 0;",
                     "}",

                     "#lstSourceType > option[value=\"301\"]::before {",
                     " content: \"FB Comments\";",
                     "  font-size: 12px;",
                     "}",

                     "#lstSourceType > option[value=\"10\"] {",
                     "    font-size: 0;",
                     "}",

                     "#lstSourceType > option[value=\"10\"]::before {",
                     "    content: \"Flux Mediafax\";",
                     "    font-size: 12px;",
                     "}",

                     "#lstSourceType > option[value=\"7\"] {",
                     "    font-size: 0;",
                     "}",

                     "#lstSourceType > option[value=\"7\"]::before {",
                     "content: \"Presa EN\";",
                     "font-size: 12px;",
                     "}",

                     "#btnCauta {	",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , red, #990000) repeat scroll 0 0;	",
                     "border: 2px ridge #990000;	",
                     "	    border-radius: 4px;	",
                     "	    color: #ffffff;	",
                     "	    cursor: pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 30px;	",
                     "	    margin: 2px;	",
                     "	    padding: 1px;	",
                     "	    text-shadow: 1px 1px 0 #000000;	",
                     "	    width: 60px;	",
                     "	}	",

                     ".btnAfisEventName",
                     "{",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "border: 1px dashed #666666;	",
                     "border-radius: 4px;	",
                     "color: #111111;	",
                     "cursor: pointer;	",
                     "font-weight: bold;	",
                     "height: 20px;	",
                     "text-shadow: 1px 1px 0 #dddddd;	",
                     "padding: 3px;	",
                     "}",

                     "	#btnCauta:hover	",
                     "	{	",
                     "	background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #ffcccc, #990000) repeat scroll 0 0;	",
                     "	    border: 2px ridge #990000;	",
                     "	    border-radius: 4px;	",
                     "	    color: #ffffff;	",
                     "	    cursor: pointer;	",
                     "	    font-weight: bold;	",
                     "	    height: 30px;	",
                     "text-shadow: 1px 1px 0 #000000;	",
                     "padding: 1px;	",
                     "margin: 2px;	",
                     "width: 60px;	",
                     "}",

                     "input[type=\"checkbox\"]:hover",
                     "{",
                     "cursor: pointer;",
                     "margin: 2px;",
                     "outline: 1px solid black;",
                     "}",



                 ].join("\n");

             // ---------- Corectura Web - Grupuri CC ----------


             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/viewwebtext.aspx") === 0))
                 document.title = "Grupuri Cuvinte Cheie";

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/viewwebtext.aspx") === 0))


                 // ---------- Scroll UP START ----------

                 $(document).ready(function() {


                     var topsb = document.createElement("button");
                     document.body.appendChild(topsb);
                     topsb.id = "scrollup";
                     topsb.title = "Scroll în sus";
                     topsb.onclick = function() {
                         document.body.scrollTop = 0; // For Chrome, Safari and Opera
                         document.documentElement.scrollTop = 0; // For IE and Firefox
                     } ;


                     window.onscroll = function() {scrollFunction();};

                     function scrollFunction() {
                         if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                             document.getElementById("scrollup").style.display = "block";
                         } else {
                             document.getElementById("scrollup").style.display = "none";
                         }
                     }
                 });

             // ---------- Scroll UP END ----------





             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/viewwebtext.aspx") === 0))
                 css += [

                     "#scrollup {",
                     "  display: none;",
                     "  position: fixed;",
                     "height: 50px;",
                     "width: 50px;",
                     "  bottom: 40px;",
                     "  right: 15px;",
                     "  z-index: 99;",
                     "  outline: none;",
                     "  cursor: pointer;",
                     "  padding: 15px;",
                     "  border-radius: 10px;",
                     "  border: 3px ridge #990000;",
                     "  font-size: 14px;",
                     "  font-weight: bold;",
                     "background-image: url(\"https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/actions/agt_uninstall-product.png\");",
                     "    background-color: white;",
                     "background-repeat: no-repeat;",
                     "    background-size: 80%;",
                     "    background-position: center;",
                     "}",

                     "#scrollup:hover {",
                     "  background-color: #cccccc;",
                     "}",


                 ].join("\n");


             // ---------- Adaugare Eveniment - Corectura Web ----------


             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaWeb/") === 0))
                 css += [






                     "#imgEventStartDate {",
                     "	    display: inline-block;	",
                     "	    padding: 1px;	",
                     "	    vertical-align: middle;	",
                     "	    width: 2%;	",
                     "	}	",


                 ].join("\n");



             // ---------- Corectura Evenimente ----------

             if (false || (location.href.replace(location.hash,'') == "http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/evenimente.aspx"))
                 document.title = "Corectura Evenimente";

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/evenimente.aspx") === 0))

                 $(document).ready(function() {


                     var topsb = document.createElement("button");
                     document.body.appendChild(topsb);
                     topsb.id = "scrollup";
                     topsb.title = "Scroll în sus";
                     topsb.onclick = function() {
                         document.body.scrollTop = 0; // For Chrome, Safari and Opera
                         document.documentElement.scrollTop = 0; // For IE and Firefox
                     } ;

                     var addev = document.querySelector("input[onclick^=reDirAddEvent]");
                     addev.id = "addEvent";
                     document.getElementById("addEvent").value = "Creare ID Eveniment Nou";


                     window.onscroll = function() {scrollFunction();};

                     function scrollFunction() {
                         if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                             document.getElementById("scrollup").style.display = "block";
                         } else {
                             document.getElementById("scrollup").style.display = "none";
                         }
                     }

                 });

             if (false || (location.href.replace(location.hash,'') == "http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/evenimente.aspx"))
                 css += [

                     "#scrollup {",
                     "  display: none;",
                     "  position: fixed;",
                     "height: 50px;",
                     "width: 50px;",
                     "  bottom: 20px;",
                     "  right: 15px;",
                     "  z-index: 99;",
                     "  outline: none;",
                     "  cursor: pointer;",
                     "  padding: 15px;",
                     "  border-radius: 10px;",
                     "  border: 3px ridge #990000;",
                     "  font-size: 14px;",
                     "  font-weight: bold;",
                     "background-image: url(\"https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/actions/agt_uninstall-product.png\");",
                     "    background-color: white;",
                     "background-repeat: no-repeat;",
                     "    background-size: 80%;",
                     "    background-position: center;",
                     "}",

                     "#scrollup:hover {",
                     "  background-color: #cccccc;",
                     "}",


                     ".form > table > tbody > tr > .form_td:nth-child(3) {",
                     "padding-top: 30px;",
                     "vertical-align: top;",
                     "padding-left: 20px;",
                     "}",


                     "[id^=\"txtEvName\"] {",
                     "max-width: 400px !important;",
                     "}",
                     "img {",
                     "max-width: 35px;",
                     "}",
                     ".btnSeteazaPrEvent {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "border: 1px solid BLACK;",
                     "border-radius: 6px;",
                     "color: #111111;",
                     "cursor: pointer;",
                     "font-weight: bold;",
                     "margin-left: 10px;",
                     "padding: 3px;",
                     "text-shadow: 1px 1px 0 #dddddd;",
                     "}",

                     "input[id^=\"txtEvPrId\"] {",
                     "border: 2px inset black;",
                     "margin-left: 4px;",
                     "padding-left: 4px;",
                     "}",

                     ".bull {",
                     "color: #cc0000;",
                     "font-family: arial;",
                     "font-size: 25px;",
                     "margin: auto;",
                     "vertical-align: middle;",
                     "}",

                     ".tabel_sh {",
                     "background-color: #cccccc;",
                     "border: 1px solid black;",
                     "margin: 2px;",
                     "}",

                     "body {",
                     "background: #f8f8f8 url(\"http://monitorizare.mediafax.biz/Site/images/bg-page.gif\") repeat scroll 0 0;",
                     "}",

                     ".form {",
                     "border-bottom: 4px ridge black;",
                     "background: #e8e8e8;",
                     "padding-top: 25px;",
                     "}",

                     "input[onclick^=\"reDirAddEvent\"] {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #f3f3f3, #000000) repeat fixed 0 0;",
                     "border: 3px outset #990000;",
                     "border-radius: 0 0 25px 25px;",
                     "color: #000000;",
                     "cursor: pointer;",
                     "display: block;",
                     "font-family: arial;",
                     "font-size: 14px;",
                     "font-weight: bold;",
                     "height: 44px;",
                     "margin: auto auto auto -15%;",
                     "padding: 4px 10px;",
                     "position: fixed;",
                     "text-decoration: none;",
                     "text-shadow: 1px 1px 0 #ffffff;",
                     "text-transform: capitalize;",
                     "top: 35px;",
                     "visibility: visible !important;",
                     "width: 30%;",
                     "transition: background 0.3s ease-out 0s, height 0.3s ease-out 0s, color 0.3s ease-out 0s, border 0.3s ease-out 0s, text 0.3s ease-out 0s, width 0.3s ease-out 0s, margin 0.3s ease-out 0s;",
                     "left: 50%;",
                     "}",


                     "input[onclick^=\"reDirAddEvent\"]:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 3px inset #990000;",
                     "height: 58px;",
                     "color: #ffffff;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "width: 40%;",
                     "margin: auto auto auto -20%;",
                     "border-radius: 0 0 30px 30px;",
                     "}",


                     "#btnCauta {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 8px;",
                     "color: #ffffff;",
                     "cursor: pointer;",
                     "font-size: 14px;",
                     "font-weight: bold;",
                     "height: 30px;",
                     "padding: 4px 10px;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "width: 120px;",
                     "}",
                     "#btnCauta:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "}",
                     "#ddlTipCautare {",
                     "border: 3px ridge black !important;",
                     "}",
                     "#ddlModCautare {",
                     "border: 3px ridge black !important;",
                     "}",

                     "#lstSubdomains {",
                     "border: 5px ridge #aaaaaa !important;",
                     "height: 100px;",
                     "width: 400px !important;",
                     "}",

                     "#ddlDomains {",
                     "width: 400px !important;",
                     "}",


                     "#txtCuvinteCheie {",
                     "height: 25px;",
                     "}",

                     "#imgEventStartDate {",
                     "display: inline-block;",
                     "padding: 1px;",
                     "vertical-align: middle;",
                     "width: 5%;",
                     "}",
                     "#imgEventEndDate {",
                     "display: inline-block;",
                     "   padding: 1px;",
                     "  vertical-align: middle;",
                     "   width: 5%;",
                     "}",


                     ".list_row {",
                     "   background-color: #f0f0f0;",
                     "  border: 3px ridge gray;",
                     " margin: 12px 8px 0;",
                     " padding: 2px 5px;",
                     "}",


                     "a[href^=\"textEdit.aspx\"] {",

                     "color: black;",
                     "   line-height: 165%;",
                     "text-shadow: 1px 1px white;",
                     "text-decoration: none;",

                     "}",


                     ".int_box {",
                     "   background-color: white;",
                     "  border: 1px solid black;",
                     " font-weight: bold;",
                     " margin: 10px;",
                     "   padding: 6px;",
                     "}",
                     "a[href^=\"fullTextEdit\"] {",
                     "align-items: center;",
                     "   align-self: center;",
                     "  background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     " border: 1px solid black;",
                     "  border-radius: 6px;",
                     " color: #111111;",
                     " cursor: pointer;",
                     " display: table-cell;",
                     " font-weight: bold;",
                     " height: auto;",
                     " margin: auto;",
                     " padding: 3px 8px;",
                     " place-content: center;",
                     " text-align: center;",
                     " text-shadow: 1px 1px 0 #dddddd;",
                     " vertical-align: middle;",
                     " white-space: nowrap;",
                     " width: 10%;",
                     " text-decoration: none;",
                     " font-size: 0;",
                     "  }",


                     " a[href^=\"fullTextEdit\"]:after {",

                     " content: \"Modifica Text\";",
                     "font-size: 12px;",
                     "}",



                     "a[href^=\"fullTextView\"] {",
                     "   align-items: center;",
                     "  align-self: center;",
                     " background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     " border: 1px solid black;",
                     " border-radius: 6px;",
                     " color: #111111;",
                     " cursor: pointer;",
                     " display: table-cell;",
                     " font-weight: bold;",
                     " height: auto;",
                     " margin: auto;",
                     " padding: 3px 8px;",
                     " place-content: center;",
                     " text-align: center;",
                     " text-shadow: 1px 1px 0 #dddddd;",
                     " vertical-align: middle;",
                     " white-space: nowrap;",
                     " width: 10%;",
                     "text-decoration: none;",
                     "font-size: 0;",
                     "}",
                     "a[href^=\"fullTextView\"]:after {",

                     "content: \"Vezi Text\";",
                     "font-size: 12px;",
                     "}",
                     "input[id^=\"txtEvId_\"] {",
                     "    border: 2px inset black;",
                     "    margin-left: 2%;",
                     "    display: inline-block;",
                     "    margin-top: -15px;",
                     "    padding-left: 1.2%;",
                     "    position: absolute;",
                     "    width: 5%;",
                     "}",
                     "span[id^=\"btnEvId_\"] {",
                     "    align-items: center;",
                     "    align-self: center;",
                     "    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "    border: 1px dashed #666666;",
                     "    border-radius: 6px;",
                     "    color: #111111;",
                     "    cursor: pointer;",
                     "    display: inline-block;",
                     "    font-size: 12px;",
                     "    font-weight: bold;",
                     "    height: auto;",
                     "    margin: -6.6% auto auto 35%; ",
                     "    padding: 2px 8px;",
                     "    place-content: center;",
                     "    text-align: center;",
                     "    text-decoration: none;",
                     "    text-shadow: 1px 1px 0 #dddddd;",
                     "    vertical-align: middle;",
                     "    white-space: nowrap;",
                     "}",
                     "input[id^=\"txtEvName_\"] {",
                     "    border: 2px inset black;",
                     "    display: inline-block;",
                     "    padding-left: 2px;",
                     "    position: relative;",
                     "    margin-top: -1.5%;",
                     "}",
                     "span[id^=\"btnSeteaza_\"] {",
                     "    align-items: center;",
                     "    align-self: center;",
                     "    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "    border: 1px solid black;",
                     "    border-radius: 6px;",
                     "    color: #111111;",
                     "    cursor: pointer;",
                     "    display: inline-block;",
                     "    font-size: 12px;",
                     "    font-weight: bold;",
                     "    height: auto;",
                     "    left: 50%;",
                     "    margin: 0.7% auto auto -47%;",
                     "    padding: 2px 8px;",
                     "    place-content: center;",
                     "    position: relative;",
                     "    text-align: center;",
                     "    text-decoration: none;",
                     "    text-shadow: 1px 1px 0 #dddddd;",
                     "    vertical-align: middle;",
                     "    white-space: nowrap;",
                     "    width: 90%;",
                     "}",


                 ].join("\n");

             // ---------- Corectura Evenimente (clona) ----------

             if (false || (location.href.replace(location.hash,'') == "http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/Evenimente.aspx"))
                 document.title = "Corectura Evenimente";

             if (false || (document.location.href.indexOf("http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/Evenimente.aspx") === 0))

                 $(document).ready(function() {


                     var topsb = document.createElement("button");
                     document.body.appendChild(topsb);
                     topsb.id = "scrollup";
                     topsb.title = "Scroll în sus";
                     topsb.onclick = function() {
                         document.body.scrollTop = 0; // For Chrome, Safari and Opera
                         document.documentElement.scrollTop = 0; // For IE and Firefox
                     } ;


                     var addev = document.querySelector("input[onclick^=reDirAddEvent]");
                     addev.id = "addEvent";
                     document.getElementById("addEvent").value = "Creare ID Eveniment Nou";


                     window.onscroll = function() {scrollFunction();};

                     function scrollFunction() {
                         if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                             document.getElementById("scrollup").style.display = "block";
                         } else {
                             document.getElementById("scrollup").style.display = "none";
                         }
                     }

                 });


             if (false || (location.href.replace(location.hash,'') == "http://old.monitorizare.mediafax.biz/editorweb/CorecturaPresaScrisa/Evenimente.aspx"))
                 css += [

                     "#scrollup {",
                     "  display: none;",
                     "  position: fixed;",
                     "height: 50px;",
                     "width: 50px;",
                     "  bottom: 20px;",
                     "  right: 15px;",
                     "  z-index: 99;",
                     "  outline: none;",
                     "  cursor: pointer;",
                     "  padding: 15px;",
                     "  border-radius: 10px;",
                     "  border: 3px ridge #990000;",
                     "  font-size: 14px;",
                     "  font-weight: bold;",
                     "background-image: url(\"https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/actions/agt_uninstall-product.png\");",
                     "    background-color: white;",
                     "background-repeat: no-repeat;",
                     "    background-size: 80%;",
                     "    background-position: center;",
                     "}",

                     "#scrollup:hover {",
                     "  background-color: #cccccc;",
                     "}",


                     "[id^=\"txtEvName\"] {",
                     "max-width: 400px !important;",
                     "}",
                     "img {",
                     "max-width: 35px;",
                     "}",
                     ".btnSeteazaPrEvent {",
                     "   background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "  border: 1px solid BLACK;",
                     " border-radius: 6px;",
                     "color: #111111;",
                     "cursor: pointer;",
                     "font-weight: bold;",
                     "margin-left: 10px;",
                     "padding: 3px;",
                     "text-shadow: 1px 1px 0 #dddddd;",
                     "}",

                     "input[id^=\"txtEvPrId\"] {",
                     "   border: 2px inset black;",
                     "  margin-left: 4px;",
                     " padding-left: 4px;",
                     "}",
                     ".bull {",
                     "   color: #cc0000;",
                     "  font-family: arial;",
                     " font-size: 25px;",
                     " margin: auto;",
                     " vertical-align: middle;",
                     "}",
                     ".tabel_sh {",
                     "   background-color: #cccccc;",
                     "  border: 1px solid black;",
                     " margin: 2px;",
                     "}",
                     "body {",
                     "    background: #f8f8f8 url(\"http://monitorizare.mediafax.biz/Site/images/bg-page.gif\") repeat scroll 0 0;",
                     "}",

                     ".form {",
                     "border-bottom: 4px ridge black;",
                     "background: #e8e8e8;",
                     "padding-top: 25px;",
                     "}",

                     ".form > table > tbody > tr > .form_td:nth-child(3) {",
                     "padding-top: 30px;",
                     "vertical-align: top;",
                     "padding-left: 20px;",
                     "}",

                     "input[onclick^=\"reDirAddEvent\"] {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #f3f3f3, #000000) repeat fixed 0 0;",
                     "border: 3px outset #990000;",
                     "border-radius: 0 0 25px 25px;",
                     "color: #000000;",
                     "cursor: pointer;",
                     "display: block;",
                     "font-family: arial;",
                     "font-size: 14px;",
                     "font-weight: bold;",
                     "height: 44px;",
                     "margin: auto auto auto -15%;",
                     "padding: 4px 10px;",
                     "position: fixed;",
                     "text-decoration: none;",
                     "text-shadow: 1px 1px 0 #ffffff;",
                     "text-transform: capitalize;",
                     "top: 35px;",
                     "visibility: visible !important;",
                     "width: 30%;",
                     "transition: background 0.3s ease-out 0s, height 0.3s ease-out 0s, color 0.3s ease-out 0s, border 0.3s ease-out 0s, text 0.3s ease-out 0s, width 0.3s ease-out 0s, margin 0.3s ease-out 0s;",
                     "left: 50%;",
                     "}",


                     "input[onclick^=\"reDirAddEvent\"]:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 3px inset #990000;",
                     "height: 58px;",
                     "color: #ffffff;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "width: 40%;",
                     "margin: auto auto auto -20%;",
                     "border-radius: 0 0 30px 30px;",
                     "}",





                     "#btnCauta {",

                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #d01111, #990000) repeat scroll 0 0;",
                     "border: 2px outset #990000;",
                     "border-radius: 8px;",
                     "color: #ffffff;",
                     "cursor: pointer;",
                     "font-size: 14px;",
                     "font-weight: bold;",
                     "height: 30px;",
                     "padding: 4px 10px;",
                     "text-shadow: 1px 1px 0 #000000;",
                     "width: 120px;",
                     "}",
                     "#btnCauta:hover {",
                     "background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #dd8686, #d01111) repeat scroll 0 0;",
                     "border: 2px inset #990000;",
                     "}",
                     "#ddlTipCautare {",
                     "border: 3px ridge black !important;",
                     "}",
                     "#ddlModCautare {",
                     "border: 3px ridge black !important;",
                     "}",

                     "#lstSubdomains {",
                     "border: 5px ridge black !important;",
                     "height: 100px;",
                     "width: 400px !important;",
                     "}",

                     "#ddlDomains {",
                     "       width: 400px !important;",
                     "}",


                     "#txtCuvinteCheie {",
                     "      height: 25px;",
                     "}",
                     "#imgEventStartDate {",
                     "display: inline-block;",
                     "padding: 1px;",
                     "vertical-align: middle;",
                     "width: 5%;",
                     "}",
                     "#imgEventEndDate {",
                     "display: inline-block;",
                     "   padding: 1px;",
                     "  vertical-align: middle;",
                     "   width: 5%;",
                     "}",


                     ".list_row {",
                     "   background-color: #f0f0f0;",
                     "  border: 3px ridge gray;",
                     " margin: 12px 8px 0;",
                     " padding: 2px 5px;",
                     "}",


                     "a[href^=\"textEdit.aspx\"] {",

                     "color: black;",
                     "   line-height: 165%;",
                     "text-shadow: 1px 1px white;",
                     "text-decoration: none;",

                     "}",


                     ".int_box {",
                     "   background-color: white;",
                     "  border: 1px solid black;",
                     " font-weight: bold;",
                     " margin: 10px;",
                     "   padding: 6px;",
                     "}",
                     "a[href^=\"fullTextEdit\"] {",
                     "align-items: center;",
                     "   align-self: center;",
                     "  background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     " border: 1px solid black;",
                     "  border-radius: 6px;",
                     " color: #111111;",
                     " cursor: pointer;",
                     " display: table-cell;",
                     " font-weight: bold;",
                     " height: auto;",
                     " margin: auto;",
                     " padding: 3px 8px;",
                     " place-content: center;",
                     " text-align: center;",
                     " text-shadow: 1px 1px 0 #dddddd;",
                     " vertical-align: middle;",
                     " white-space: nowrap;",
                     " width: 10%;",
                     " text-decoration: none;",
                     " font-size: 0;",
                     "  }",


                     " a[href^=\"fullTextEdit\"]:after {",

                     " content: \"Modifica Text\";",
                     "font-size: 12px;",
                     "}",



                     "a[href^=\"fullTextView\"] {",
                     "   align-items: center;",
                     "  align-self: center;",
                     " background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     " border: 1px solid black;",
                     " border-radius: 6px;",
                     " color: #111111;",
                     " cursor: pointer;",
                     " display: table-cell;",
                     " font-weight: bold;",
                     " height: auto;",
                     " margin: auto;",
                     " padding: 3px 8px;",
                     " place-content: center;",
                     " text-align: center;",
                     " text-shadow: 1px 1px 0 #dddddd;",
                     " vertical-align: middle;",
                     " white-space: nowrap;",
                     " width: 10%;",
                     "text-decoration: none;",
                     "font-size: 0;",
                     "}",
                     "a[href^=\"fullTextView\"]:after {",

                     "content: \"Vezi Text\";",
                     "font-size: 12px;",
                     "}",
                     "input[id^=\"txtEvId_\"] {",
                     "    border: 2px inset black;",
                     "    margin-left: 2%;",
                     "    display: inline-block;",
                     "    margin-top: -15px;",
                     "    padding-left: 1.2%;",
                     "    position: absolute;",
                     "    width: 5%;",
                     "}",
                     "span[id^=\"btnEvId_\"] {",
                     "    align-items: center;",
                     "    align-self: center;",
                     "    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "    border: 1px dashed #666666;",
                     "    border-radius: 6px;",
                     "    color: #111111;",
                     "    cursor: pointer;",
                     "    display: inline-block;",
                     "    font-size: 12px;",
                     "    font-weight: bold;",
                     "    height: auto;",
                     "    margin: -6.6% auto auto 35%;",
                     "    padding: 2px 8px;",
                     "    place-content: center;",
                     "    text-align: center;",
                     "    text-decoration: none;",
                     "    text-shadow: 1px 1px 0 #dddddd;",
                     "    vertical-align: middle;",
                     "    white-space: nowrap;",
                     "}",
                     "input[id^=\"txtEvName_\"] {",
                     "    border: 2px inset black;",
                     "    display: inline-block;",
                     "    padding-left: 2px;",
                     "    position: relative;",
                     "    margin-top: -1.5%;",
                     "}",
                     "span[id^=\"btnSeteaza_\"] {",
                     "    align-items: center;",
                     "    align-self: center;",
                     "    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #efefef, #aaaaaa) repeat scroll 0 0;",
                     "    border: 1px solid black;",
                     "    border-radius: 6px;",
                     "    color: #111111;",
                     "    cursor: pointer;",
                     "    display: inline-block;",
                     "    font-size: 12px;",
                     "    font-weight: bold;",
                     "    height: auto;",
                     "    left: 50%;",
                     "    margin: 0.7% auto auto -47%;",
                     "    padding: 2px 8px;",
                     "    place-content: center;",
                     "    position: relative;",
                     "    text-align: center;",
                     "    text-decoration: none;",
                     "    text-shadow: 1px 1px 0 #dddddd;",
                     "    vertical-align: middle;",
                     "    white-space: nowrap;",
                     "    width: 90%;",
                     "}",

                 ].join("\n");


             // ---------- END Script ----------

             if (typeof GM_addStyle != "undefined") {
                 GM_addStyle(css);
             } else if (typeof PRO_addStyle != "undefined") {
                 PRO_addStyle(css);
             } else if (typeof addStyle != "undefined") {
                 addStyle(css);
             } else {
                 var node = document.createElement("style");
                 node.type = "text/css";
                 node.appendChild(document.createTextNode(css));
                 var heads = document.getElementsByTagName("head");
                 if (heads.length > 0) {
                     heads[0].appendChild(node);
                 } else {
                     // no head yet, stick it whereever
                     document.documentElement.appendChild(node);
                 }
             }
            })();