Conta Carattri Areadmin

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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);