chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


Tutorial Count thread views filter_list
Author
Message
Count thread views #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:

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

Reply

RE: Count thread views #2
Im dead someone had some time on their hands, haha respect

Reply

RE: Count thread views #3
(07-29-2019, 12:07 AM)papiswazy Wrote: Im dead someone had some time on their hands, haha respect

all of 2 minutes. the point of this forum is to share things that may be of use to others. I wanted to know what my view counts were on aggregate (approx 200k), and figured others might want the same.

Reply

RE: Count thread views #4
Nice, that's one way to do it. Maybe we'll add a feature.
[Image: 7ajmN5P.jpg]

Skype: oni_sl (Add)
Steam: Oni | SL (Add)

Reply

RE: Count thread views #5
(07-29-2019, 01:54 AM)Oni Wrote: Nice, that's one way to do it. Maybe we'll add a feature.

that would be nice...

Reply

RE: Count thread views #6
(07-29-2019, 12:18 AM)phyrrus9 Wrote:
(07-29-2019, 12:07 AM)papiswazy Wrote: Im dead someone had some time on their hands, haha respect

all of 2 minutes. the point of this forum is to share things that may be of use to others. I wanted to know what my view counts were on aggregate (approx 200k), and figured others might want the same.

im not trying to say anything rude homie, just saying its preety cool, nobody would think to do that but you did and i respect that. But damn 2 minutes.. hahah someone can finesse

Reply






Users browsing this thread: 1 Guest(s)