Hey,
I had this script from hf, but I edited a bit and it works on FK now.
It will tell you if the post has enough characters.
You will need greasemonkey for firefox, or tampermonkey for chrome.
Code;
Screenshots;
I had this script from hf, but I edited a bit and it works on FK now.
It will tell you if the post has enough characters.
You will need greasemonkey for firefox, or tampermonkey for chrome.
Code;
// ==UserScript==
// @name ForumKorner Post Checker
// @namespace ForumKorner Post Checker
// @description Checks if post is ok, made by xerotic edited by Villain.
// @include http://forumKorner.org/*
// @include http://www.forumKorner.org/*
// @version 2.0
// ==/UserScript==
regex = /here.*?>/;
revised = "here.<br /> <div id='letscount'>0<br /><span style='color:red'>Too Low!</span></div>";
document.getElementById('quickreply_e').innerHTML= document.getElementById('quickreply_e').innerHTML.replace(regex,revised);
addButtonListener();
function addButtonListener(){
var texts = document.getElementById("message");
texts.addEventListener('keyup',doCountNow,true);
texts.addEventListener('keydown',doCountNow,true);
}
function doCountNow(){
var field = parseInt(document.getElementById('message').value.length);
var minlimit = 25;
var maxlimit = 16777215;
// if (field > maxlimit) {
// document.getElementById('message').value = document.getElementById('message').value.substring(0, maxlimit);
// } else {
// document.getElementById('letscount').innerHTML = maxlimit - document.getElementById('message').value.length;
// }
if (field < minlimit) {
document.getElementById('letscount').innerHTML = field+'<br /><span style="color:red">Not long enough.</span>'
}
else if (field > maxlimit) {
document.getElementById('letscount').innerHTML = field+'<br /><span style="color:red">Too long.</span>'
}
else {
document.getElementById('letscount').innerHTML = field+'<br /><span style="color:green">Ok to post.</span>'
}
}
Screenshots;