There are 4 previous versions of this script.
// nana 10 demarker user script
// version 1.0
// 2008-08-23
// Copyright (c) 2008, Yehuda B.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// http://www.gnu.org/licenses/gpl.html
//
// ==UserScript==
// @name nana 10 demarker
// @namespace http://yehudab.com
// @description Fix colors of links and headers in nana 10 web site. Version 1.0
// @include http://*nana10.co.il/*
// ==/UserScript==
function demarker ()
{
addGlobalStyle(".stepcarousel .BoxTitle, .footerGlry .BoxTitle, .subtitleBoldText, .subtitleBoldTextSize21, .ForumHText, .box_text_header, .quoteText, .sbtitBldTxt, .sbtlBldTxtSz21, .Ftr10Title, .Sldr4x1Title, .lngHdrTxt, .span1184Fix, .div1260TitleFix, .QuotationText {background-color:transparent}");
addGlobalStyle("a.ImgLink, #ReletedLinksList, .flashLightColum, .newsFlashBlackArea, .ForumInnerTopMenuDiv {background-color:#D2D2D2;}");
addGlobalStyle(".Ftr10Tag {background-color:#606060;}");
addGlobalStyle(".ImageHeader, .MP_ImageHeader, .MP_ArticlePrimeTag, .ArticlePrimeTag {background-color:#D2D2D2; opacity: 0.6}");
addGlobalStyle(".lingulaHeaderText {background-color:transparent; text-decoration:underline}");
addGlobalStyle(".green, .specialNewsIconText, .allFlashNewsText, .FontColorGreen, .ForumMsgGreenTitle, .forum_subtitle_text, .forum_main_header {background-color:transparent; color:black}");
var allA = document.getElementsByTagName("A");
if (allA != null)
{
var i, l = allA.length;
for (i = 0; i < l; i++)
{
allA[i].style.color = "black";
allA[i].style.backgroundColor = "";
}
}
var allFooters = document.getElementsByClassName("footerGlry");
if (allFooters != null)
{
var i, l = allFooters.length;
for (i = 0; i < l; i++)
{
allFooters[i].style.backgroundColor = "";
}
}
decolorArr(document.getElementsByTagName("span"));
decolorArr(document.getElementsByTagName("div"));
decolorArr(document.getElementsByTagName("label"));
decolorArr(document.getElementsByTagName("h1"));
}
function decolorArr(arr)
{
if (arr != null)
{
var i, l = arr.length;
for (i = 0; i < l; i++)
{
if (arr[i].style.color.indexOf("rgb") >= 0)
arr[i].style.color = "black";
if (arr[i].style.backgroundColor.indexOf("rgb") >= 0)
arr[i].style.backgroundColor = "#D2D2D2";
}
}
}
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
demarker();
