discipe / Yandex weather ad remover

// ==UserScript==
// @name         Yandex weather ad remover
// @namespace    ru.vanger
// @version      0.2
// @description  Cleanup Yandex weather page from ads. Adds Holiday name to title, if applicable.
// @author       Vanger
// @require      http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @match        http://weather.yandex.ru/*
// @match        https://weather.yandex.ru/*
// @match        http://weather.ya.ru/*
// @match        https://weather.ya.ru/*
// @match        https://yandex.ru/pogoda/*
// @run-at       document-idle
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  'use strict';
  /*    $("div.forecast-details > div").remove();
      $("div.forecast-details > dd").filter(function( index ) {
          return $(this).attr("class").split(' ').length > 1;
      }).remove();*/

  $("div > script").each(function (index) {
    $(this).parent().remove()
  });
  console.log("Ads cleaned up from weather's page!");

  $("div.forecast-details > dt[title]").each(function (index) {
    var thisTitle = $(this).attr("title");
    var thisClass = 'forecast-details__weekday';
    var nestedStyle = '';
    //force black color on workdays, instead of grey.
    //if (!$(this).hasClass('forecast-details__day_weekend')) {
    //    nestedStyle = 'color: rgba(0,0,0,1)';
    //}
    console.log(index + ": " + thisTitle);
    var newElem = $('<small class="' + thisClass + '"><span style="' + nestedStyle + '">' + thisTitle + '</span></small>');
    $(this).append(newElem);
  });

  console.log("Added holiday title to the calendar.");
})();