CH Yahoo Color-Coded Results

Change background color of Yahoo search ad areas.

Verze ze dne 07. 09. 2014. Zobrazit nejnovější verzi.

// ==UserScript==
// @name        CH Yahoo Color-Coded Results
// @author      clickhappier
// @namespace   clickhappier
// @description Change background color of Yahoo search ad areas.
// @version     1.0c
// @include     http*://search.yahoo.*/search*
// @grant       none
// ==/UserScript==

// adapted from my CH Google Color-Coded Results script

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);
}


addGlobalStyle('.ads { background-color: darkgray ! important; }');

addGlobalStyle('.east_ad_bg { background-color: darkgray ! important; }');