Count thread views 07-28-2019, 10:08 PM
#1
If you've ever wondered how you can add up the number of views your threads have received, fear no more! You don't need to go add up every thread manually. Let JS do the work for you.
Instructions:
Go to your profile and click "view threads". Then open developer console and paste this into it:
and go ahead and run it. It will tell you the sum of the view counter for that page. Repeat this for every page in your search results, then add up those numbers.
Instructions:
Go to your profile and click "view threads". Then open developer console and paste this into it:
Code:
var rows = document.getElementsByClassName("inline_row");
var sum=0
let reg = new RegExp(",");
for (var i = 0; i < rows.length; i=i+1)
{
cols = rows[i].getElementsByClassName("trow1");
col = cols[5];
if (col !== undefined)
sum=sum+parseInt(col.innerText.replace(reg, ''));
}
console.log(sum);