[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / hkon9 / hkpol / htg / leftpol / sw / vg ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): a77c38b65bb3b3e⋯.jpg (204.35 KB, 1024x781, 1024:781, a77c38b65bb3b3e15540315b6d….jpg) (h) (u)

[–]

 No.943010>>943013 >>943560 >>943694 [Watch Thread][Show All Posts]


var gotoxa;
var gotoxac = 0;

var gotox = function() {
if (typeof gotoxa === 'undefined') {
gotoxa = $('.sfac span').sort(function(a,b) {
return $(b).text()-$(a).text();
});
}

var e = $(gotoxa[gotoxac++]);
e.parents('.post').find('.post_no').first().click();
}

var process = function() {
// var mult = 8; // for coloring FIXME

var post = $(this);

var prev = post.prev();
if (prev.is('br')) {
prev = prev.prev();
}
else if (prev.is('.op')) {
if (prev.find('.omitted').length && !prev.find('.omitted.hide-expanded').length) {
post.addClass('deferred-process');
return;
}
}

var p1 = +post.find('.post_no').last().text();
var p0 = +prev.find('.post_no').last().text();

var t1 = +post.find('time').attr('unixtime');
var t0 = +prev.find('time').attr('unixtime');

prev.find('.intro time').after('<span class="sfac"><abbr title="Slide Factor (PPM outta thread)">SF</abbr>: <span></span></span>').after(' ');
var v;
var f = prev.find('.sfac span').text(v = Math.round(60*(p1-p0-1)/(1+t1-t0)*1000)/1000);
//f.css('color', 'rgb(100%,'+(100-v*mult)+'%,'+(100-v*mult)+'%);'); FIXME
f.click(gotox);
}

$(document).ready(function() {
$('div.post.reply').each(process);

$(document).on('new_post', function(e, post) {
if ($(post).is('.thread')) {
$(post).find('div.post.reply').each(process);
}
else {
process.call(post);
if ($(post) && $(post).next() && $(post).next().next() && $(post).next().next().is('.post.deferred-process')) {
$(post).next().next().removeClass('deferred-process');
process.call($(post).next().next());
}
}
});
});

my first 8chan userjs pls be sensitive for my ego

 No.943013

File (hide): 3ec84f51801de6b⋯.jpg (71.86 KB, 643x820, 643:820, 0a1.jpg) (h) (u)


 No.943014>>943023

>posting retarded /pol/ shit here


 No.943016>>943018 >>943028

you open Options pane, then go to userjs and obviously you paste this lump of code there to have a nice slide factor field next to a date like this:

Slide Factor userjs for 8chan Anonymous (You) 07/16/18 (Mon) 03:45:59 (((SF: 0.536))) No.943010[Watch Thread][Show All Posts]>>943013

look at the part covered in parentheses. then if you click this number, you get redirected to a post with the highest slide factor. if you continue clicking, you get redirected to posts with lesser slide factors etc

slide factor is a number of posts that were created in other threads per minute um like this formula says:

>60*(p1-p0-1)/(1+t1-t0)

in general the higher the number, the worse goy a poster is, so in theory this userscript should help detect slides and show the posts that are responsible for the slides. it's not perfect, but it can always be improved somehow


 No.943018>>943031

>>943016

This should be embedded in the Mod's terminal. Well done lad. You are doing God's work.


 No.943019

Well done OP.


 No.943023

>>943014

>being a kike


 No.943028>>943031

>>943016

So if I'm understanding correctly, if 2 or more threads simultaneously receive high amounts of posts, then this would mark all posts through those threads as "slides" right?


 No.943031>>943037 >>943095

>>943028

this is a very simple method for a simple thing: let's suppose i write a post in some thread that isn't kosher and so this post triggers a lot of replies in other threads and/or new threads. this would make a high slide factor for this non-kosher post. sometimes the non-kosher post that triggers a slide won't be the last post in a given thread, so the assumption is then broken, but it will give a big slide factor to surrounding posts. it doesn't take sages into account. this is the first version of this script, it's more like a proof of concept, but this kind of method can totally neutralize the concept of slides IMO when more variables get taken into account.

in short this method can sometimes find you non-kosher posts, that triggered slides, but it will also show higher numbers throughout the board when global slides happen or when the board gets filled up with normies.

the slide factor numbers will be higher for more active boards.

so, it's not a script to detect slide posts, like >>943018 suggests, it's rather a tool to detect controversial posts - posts, that triggered unusually high activity outside of the thread you are browsing


 No.943034>>943037

does the script take into account the difference between bumping old threads, making a bunch of new threads and posts in other active threads?

Otherwise if there's two very active threads the SF might go crazy without being a real slide.


 No.943037

>>943031

oh btw if there's a long running thread, the posts that were added immediately before or during the times of heavy shilling will have a much higher slide factor number than when a board is chill

>>943034

it only takes into account a difference of post numbers and a difference of time, as noted in this formula:

>60*(p1-p0-1)/(1+t1-t0)

and so it doesn't really matter if the posts inbetween are in another thread or all other threads combined.

so, in your example, the SF will go much higher for posts in a thread A if there happen to be moments, when there are over 9000 posts per second in thread B, just like it will go higher during moments, when all other threads get bumped to bury the thread A. i don't really know how it will work out, it's an experiment after all


 No.943095


 No.943533

It sounds really useful in theory, but in practical applications in real-time board use conditions it is not going to be very useful because it can not differentiate between shitposts (which you want to get rid of) and legit interest (which you want to promote). It is still going to take a mod looking at the content to make that determination, and that can be done a whole lot faster without having to dump yet more code (which means more maintenance) into a site which is already dealing with unstable code issues.


 No.943560>>943621

>>943010 (OP)

>javascript

do you really expect me to run that shit on my machine?


 No.943621>>943678

>>943560

shut the fuck up retard, this is how js should be used, for userscripts, not for letting every website you visit execute code remotely.


 No.943678

>>943621

>Running absolute shit is a good thing as long as it was the intended purpose of the absolute shit

Do you even read what you wrote before you post?


 No.943694

>>943010 (OP)

>wah, that other thread is more popular than the shitty pizza pedo conspiracy thread I just made

>it must be a slide thread!

>how can I force everyone to just post in my thread?


 No.943706

File (hide): 763dece953b842b⋯.gif (179.79 KB, 169x250, 169:250, Sayabaka.gif) (h) (u)

>posts slower JQuery code

Look, laugh at him!

What a gay!




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
17 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / hkon9 / hkpol / htg / leftpol / sw / vg ][ watchlist ]