interventions hebdomadaires sur fond noir

Better Readability

// ==UserScript==
// @name         interventions hebdomadaires sur fond noir
// @namespace    https://greasyfork.org/fr/users/30595-deicide
// @version      0.1
// @description  Better Readability
// @match        https://michelonfray.com/interventions-hebdomadaires/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @grant        none
// @icon          data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAMAAAExAAIAAAAQAAAATgAAAAAAAJOjAAAD6AAAk6MAAAPocGFpbnQubmV0IDQuMS41AP/bAEMAAgEBAgEBAgICAgICAgIDBQMDAwMDBgQEAwUHBgcHBwYHBwgJCwkICAoIBwcKDQoKCwwMDAwHCQ4PDQwOCwwMDP/bAEMBAgICAwMDBgMDBgwIBwgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIAEAAQAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiY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function sombre() {
    pre = false;
    $('<div class="container" style="display:-webkit-box"><p class="font-size-label">Font Size : </p>  <button id="up" style="width:18px">+</button>  <p id="font-size"></p>  <button id="down" style="width:18px">-</button></div>').insertBefore('.container:eq(1)');
    var contenu = $( "div.video-contents-description:nth-child(1)" ).text();
    $('header').css("background-color","black");
    $('body').css("background-color","black");
    $('.one-third-col').hide();
    $('.two-third-col').css("width","100%");
    $('.video-contents-full-row-content.video-contents-full-row-content-recos-toggled').css({"position":"unset"});
    $('.video-contents-full-box .video-contents-text-description').css({"background-color":"black"});
}

$('body').delegate(".two-third-col", "click", function() {
    if (pre) { sombre(); }
});

function getSize() {
  var size = $( ".video-wrapper" ).css( "font-size" );
  size = parseInt(size, 10);
  return(size);
}

$( "body" ).delegate("#up", "click", function() {
  var size = getSize();
  if ((size + 2) <= 50) {
    $( ".video-wrapper" ).css( "font-size", size + 2+'px' );
  }
});

$( "body" ).delegate("#down", "click", function() {
  var size = getSize();
  if ((size - 2) >= 8) {
    $( ".video-wrapper" ).css( "font-size", size - 2+'px' );
  }
});