NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name FA Restore Notification Count in Classic
// @namespace http://www.furaffinity.net/maloo
// @version 0.11
// @description Restores exact counts for the FA notification counters in the classic theme.
// @include *://*furaffinity.net/*
// @license MIT
// @run-at document-start
// ==/UserScript==
var counter = 0;
var waitForSub = setInterval(function() {
var notif = document.querySelectorAll('.notification-container');
if (notif.length >= 5)
{
for (const elem of notif)
{
var count = elem.title.split(' ')[0];
count = count.replace(/\,/g,'');
var ih = elem.innerHTML;
ih = ih.slice(ih.search(/</), ih.length);
elem.innerHTML = count + ih;
}
clearInterval(waitForSub);
}
else if (++counter == 20) { clearInterval(waitForSub); console.log("FAREC Timed Out"); }
},50);