Greasy Fork is available in English.

Color Picker figuccio

Change background color inserire blue red ecc

// ==UserScript==
// @name          Color Picker figuccio
// @version       0.5
// @description   Change background color inserire blue red ecc
// @author        figuccio
// @match          *://*/*
// @namespace     https://greasyfork.org/users/237458
// @grant         GM_addStyle
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_registerMenuCommand
// @require       https://code.jquery.com/jquery-1.11.0.min.js
// @noframes
// @icon          https://image.flaticon.com/icons/svg/3124/3124925.svg
// @license        MIT
// ==/UserScript==
(function () {
  'use strict';
   var body = document.body;
   var colorPicker = document.createElement('div');
   colorPicker.id="_color-picker";
   colorPicker.title="inserire colore";
   var inputColor = document.createElement('input');
   inputColor.id ="_input-color";
   inputColor.setAttribute('style',"position:fixed;top:315px;right:130px;");
   colorPicker.appendChild(inputColor);
   body.appendChild(colorPicker);
        ///////////////////////////
   var colorDom = document.querySelector('#_input-color');

   colorDom.addEventListener('input', function (e) {hex(this.value);});

 function hex(text) {
      const textarea = document.createElement('textarea');
      textarea.style.position = 'fixed';
      textarea.style.top = '315px';
      textarea.style.left='1230px';
      textarea.style.background='green';
      textarea.style.color='red';
      textarea.title="hex value";
     //dimensioni textarea + piccola
      textarea.rows="1";
     //text area resize disattivato
      textarea.style.resize='none';
     //lunghezza piu piccola
      textarea.cols='6';
      textarea.value = text;
      textarea.select();
      document.body.appendChild(textarea);
    }
    ///////////////////////////////
   document.getElementById("_input-color").addEventListener("input", function() {

  GM_setValue('bg', this.value);
$('.diyh7w1b,.thodolrn,._2t-a').css('background-color', this.value );
 document.body.style.backgroundColor = this.value;


 console.log(this.value);
});

     })();

////////////////////////////////
 if (GM_getValue('bg') !==null){
     document.getElementById('_input-color').value =GM_getValue('bg');
  document.body.style.backgroundColor=GM_getValue('bg');
}