Conta Carattri Areadmin

Aggiunge un contatore di caratteri sotto gli input e i textarea all'interno dell'areadmin

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Conta Carattri Areadmin
// @description Aggiunge un contatore di caratteri sotto gli input e i textarea all'interno dell'areadmin
// @author Maxeo | maxeo.it
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @include     http://*/admin.php/*
// @include     https://*/admin.php/*
// @icon        http://www.alias2k.com/assets/images/alias-logo-color.png
// @version     1.2.0
// @grant       none
// @namespace https://greasyfork.org/users/88678
// ==/UserScript==
function eseguiConteggio() {
  ($('textarea, input').each(function () {
    
    
    if (!$(this).parent().find('div').hasClass('counerTxtArea'))
    $(this).parent().append('<div class=\'counerTxtArea\'></div>')
  }), $('textarea, input').unbind(), $('textarea, input').bind('keyup', 'textarea, input', function () {
    $(this).next('.counerTxtArea').html($(this).val().length)
  }))
}
eseguiConteggio(),
setInterval(function () {
  eseguiConteggio()
}, 500);