raulsrule / Zooqle

// ==UserScript==
// @namespace     https://openuserjs.org/users/raulsrule
// @name          Zooqle
// @description   Script to enhance visibility of text elements
// @copyright     2019, raulsrule (https://openuserjs.org/users/raulsrule)
// @license       MIT
// @version       0.0.1
// @include       *zooqle*
// @author      raulsrule
// @grant none
// ==/UserScript==

// ==OpenUserJS==
// @author raulsrule
// ==/OpenUserJS==

(function () {
  'use strict';

  const elems = [
    ...document.querySelectorAll("[class^=text-muted]"),
    ...document.querySelectorAll("[class*=text-muted]"),
    ...document.querySelectorAll("[class^=small]"),
    ...document.querySelectorAll("[class*=small]"),
    ...document.querySelectorAll("[class^=txt-title]"),
    ...document.querySelectorAll("[class*=txt-title]"),
    ...document.querySelectorAll("[class^=tt-suggestion]"),
    ...document.querySelectorAll("[class*=tt-suggestion]"),
    ...document.querySelectorAll("[class^=tt-h]"),
    ...document.querySelectorAll("[class*=tt-h]"),
    document.getElementById("inputSearchTop"),
  ];
  elems.forEach(f => {
    if (f) {
      if ([f.tagName, f.tagname].includes('A')) {
        f.style.cssText += "; color:blue!important; text-decoration: underline !important; "
      }
      else {
        f.style.cssText += "; color:black!important;"
      }
      f.style.cssText += "font-size: 100%; !important;"
    }
  });
})();