Also, here's a quick request.
Do you think it'd be possible to add an option that will put the ratings that a post has for a filtered post?
For example, something like this...
[img_thumb]http://dl.dropbox.com/u/8416055/Faceraper_Request.png[/img_thumb]
The reason being that sometimes a post will be automatically filtered due to a close contest between negative and positive ratings, and sometimes I would like to see posts filtered for late in LMAO pics, but most certainly not dumbs.
I've been finding myself clicking these hidden posts and finding about half and half, so I was thinking to msyelf I'd probably have a higher success yield if I was able to see the ratings without the filtered post, and from them I can probably make an educated guess on the content of the post, based on the ratings it was given.
Just a suggestion. :shobon:
[QUOTE=Gmod4ever;27664995]Also, here's a quick request.
Do you think it'd be possible to add an option that will put the ratings that a post has for a filtered post?
For example, something like this...
[img_thumb]http://dl.dropbox.com/u/8416055/Faceraper_Request.png[/img_thumb]
The reason being that sometimes a post will be automatically filtered due to a close contest between negative and positive ratings, and sometimes I would like to see posts filtered for late in LMAO pics, but most certainly not dumbs.
I've been finding myself clicking these hidden posts and finding about half and half, so I was thinking to msyelf I'd probably have a higher success yield if I was able to see the ratings without the filtered post, and from them I can probably make an educated guess on the content of the post, based on the ratings it was given.
Just a suggestion. :shobon:[/QUOTE]
Open the filters menu, and change the scores for Late and Dumb ratings. By default it's -50 per dumb, and -20 per late. Play around with the values, and refresh the page.
[editline]26th January 2011[/editline]
It's a good idea though.
[QUOTE=not_Morph53;27665124]Open the filters menu, and change the scores for Late and Dumb ratings. By default it's -50 per dumb, and -20 per late. Play around with the values, and refresh the page.
[editline]26th January 2011[/editline]
It's a good idea though.[/QUOTE]
Yeah, I've already changed the values around, but something may have a lot more clocks than winners or funnies - and if it has enough funnies/winners, I may want to look at it anyway.
Glad you like the idea, too. :shobon:
[QUOTE=mm3guy;27645465]Here, instead of that one here's one I made:
[code]- snip -[/code]
Bug: If you quickreply, you may end up seeing some posts made since the page was loaded twice. I need to figure out how to stop that.[/QUOTE]
Great! Thanks mm3guy.
It's good to add something to the title like this:
[code]
// ==UserScript==
// @name FP Ticker post loader thing
// @namespace whooaaaa
// @include http://www.facepunch.com/*
// ==/UserScript==
(function($){
var origTitle = document.title;
// Trigger title reset on scroll
$(window).scroll(function()
{
setTimeout(function(){ document.title = origTitle; }, 5000);
});
// Ticker post thing!
if(String(location).indexOf('http://www.facepunch.com/threads/') === 0)
{
var thing = $(".popupctrl:first");
if(thing.length == 1)
{
thing = thing.eq(0).text().match(/Page ([0-9]+) of ([0-9]+)/);
if((thing[2]) != (thing[1]))
{
return;
}
}
var lastpost = $("#posts > li:last");
lastnum = Number(lastpost.find(".nodecontrols a[name^=post]").text().match(/Post \#([0-9]+)/)[1]) + 1;
var LastPost = Number(lastpost.attr("id").match(/post_([0-9]+)/)[1]);
var RequestNum = 0,
TickerLimit = 100,
LastPost = 0,
ticker_ajax = null;
var attributes_list = ['lastread', 'you', 'yourthread', 'mentioned', 'lastread', 'newthread', 'forumtitle',
'forumlink', 'username', 'userlink', 'threadlink', 'date', 'threadname', 'postid', 'threadid'];
function AddTickerPost(post)
{
var attributes = {};
for (x in attributes_list)
{
attributes[attributes_list[x]] = post.attributes.getNamedItem(attributes_list[x]).value;
}
if (Number(attributes['threadid']) === Number($("input[name=t]:first").val()))
{
// Add @ to title
document.title = '@'+document.title;
$('#posts').append('<li class="postbitignored postbitim postbitlegacy" style="display: none;" id="post_' + attributes['postid'] + '">' +
' <div class="posthead">' +
' <div id="time_image">' +
' <img src="fp/time.png"/>' +
' </div>' +
' <span class="postdate">' +
' <span class="date">' + attributes['date'] + '</span>' +
' </span>' +
' <span class="nodecontrols">' +
' <a name="post' + attributes['postid'] + '" href="' + attributes['threadlink'] + '" class="postcounter"><img src="http://static.facepunch.com/fp/link.png" /> Post #' + lastnum + '</a>' +
' </span>' +
' </div>' +
' <div class="postdetails">' +
' <div class="userinfo">' +
' <a class="username online" href="' + attributes['userlink'] + '" title="' + attributes['username'] + ' is online now">' + attributes['username'] + '</a>' +
' </div>' +
' <div class="postbody">' +
' <div class="postrow">' +
' <h2 class="title">' +
' <label>' +
' Loading...' +
' </label>' +
' </h2>' +
' <div class="content">' +
' <blockquote class="postcontent messageignored">' +
' <div class="smallfont remove_ignore">Fetching posttext.</div>' +
' </blockquote>' +
' </div>' +
' </div>' +
' <div class="nodecontrols">' +
' </div>' +
' </div>' +
' </div>' +
' <hr />' +
'</li>');
$('#post_' + attributes['postid']).slideDown();
unsafeWindow.display_post(attributes['postid']);
lastnum = lastnum + 1;
}
}
function OnTickerRequestComplete(data, delay)
{
var newposts = data.getElementsByTagName('post');
for (i = 0; i < newposts.length; i++)
{
AddTickerPost(newposts[i]);
LastPost = Math.max(newposts[i].attributes.getNamedItem('postid').value, LastPost);
}
if (newposts.length == 0)
{
delay = delay + 7000;
}
else
{
delay = 5000;
$('.ticker_item:hidden').slideDown(1000);
}
setTimeout(function(){ DoRequest(delay);}, delay);
}
function DoRequest( delay )
{
$.get('fp_ticker.php', {aj: 1, startpost: LastPost}, function(data)
{
OnTickerRequestComplete(data, delay);
}, 'xml');
}
DoRequest(5000);
}
})(unsafeWindow.jQuery);
[/code]
Omg dude I'm not homosexual but I love you!
Why wont it work :confused:
:whatup:
Thanks op using it now, very useful.
This is fucking awesome
for some reason this stopped working for me
The stalked threads stopped working with everything else on in Chrome dev.
can you make this thing autoupdate?
Working fine here.
People who're having problems with this, could you post what version of what browser you're using? And what ever javascript errors that it gives you.
[QUOTE=Penguiin;27743774]can you make this thing autoupdate?[/QUOTE]
autoupdating wouldn't be possible, however notifying on new version would be doable
[b]Broken:[/b] Stickied threads(possibly nuked, haven't checked) don't appear stickied.
[b]Any error info:[/b] "Uncaught ReferenceError: skimlinks is not defined"
[b]Version:[/b] Chrome Developer Channel: 10.0.648.6
Not sure that I can attach any developer tools to installed userscripts, but I might be able to look into it tomorrow as far as more info goes.
[QUOTE=nicatronTg;27747894][b]Broken:[/b] Stickied threads(possibly nuked, haven't checked) don't appear stickied.
[b]Any error info:[/b] "Uncaught ReferenceError: skimlinks is not defined"
[b]Version:[/b] Chrome Developer Channel: 10.0.648.6
Not sure that I can attach any developer tools to installed userscripts, but I might be able to look into it tomorrow as far as more info goes.[/QUOTE]
Actually, skimlinks is for google analytics.
He said any errors, and that's all the error console gave out.
[QUOTE=nicatronTg;27751884]He said any errors, and that's all the error console gave out.[/QUOTE]
You have to be specific:
Are the threads being highlighted (red/green) correctly?
Are they being bumped/nuked correctly?
Did everything break when you updated Chrome?
Do the menu's work?
Are the Options being displayed correctly in the menu?
[QUOTE=Penguiin;27743774]can you make this thing autoupdate?[/QUOTE]
Hell no.
[QUOTE=Penguiin;27743144]for some reason this stopped working for me[/QUOTE]
If you are using Incognito/Private browsing, or clear your cookies, the settings get deleted.
[QUOTE=The Spie;27736807]Why wont it work :confused:[/QUOTE]
Be specific.
[QUOTE=not_Morph53;27753700]You have to be specific:
Are the threads being highlighted (red/green) correctly?
Are they being bumped/nuked correctly?
Did everything break when you updated Chrome?
Do the menu's work?
Are the Options being displayed correctly in the menu?[/QUOTE]
1. No
2. No
3. I can't tell you, I just reinstalled Windows, and Chrome updates silently in the background.
4. Yeah, everything but those work, emotes work, menus work, etc.
5. As far as I can see.
Let join in with the others to thank you for your work and it makes my inner no-life's life easier. :buddy:
[QUOTE=nicatronTg;27754536]1. No
2. No
3. I can't tell you, I just reinstalled Windows, and Chrome updates silently in the background.
4. Yeah, everything but those work, emotes work, menus work, etc.
5. As far as I can see.[/QUOTE]
You do have users/titles in the list, correct?
I do have a theory would 'could' cause issues like this. I'll look into it later, once I finish sprucing up the event log stuff in user profile pages. Expect an update by tomorrow or so.
[QUOTE=not_Morph53;27753700]Hell no.
[/QUOTE]
Then could you make it check to see if there's a new version and put like a little icon next to the User CP button?
[QUOTE=lavacano;27756932]Then could you make it check to see if there's a new version and put like a little icon next to the User CP button?[/QUOTE]
I'll look into it.
[editline]30th January 2011[/editline]
If I can come up with something that doesn't use a Greasemonkey specific API, then it's a go. Otherwise, I'm going to have to default to a "hell no".
That skimlinks error is "normal", and has been around for a while actually.
As for updates, that could fairly easily be done via XHR and a file somewhere (JSON/XML/etc.), The user would already know how to install it so if they stuff it up it's their own fault.
[QUOTE=TheDecryptor;27764206]That skimlinks error is "normal", and has been around for a while actually.
As for updates, that could fairly easily be done via XHR and a file somewhere (JSON/XML/etc.), The user would already know how to install it so if they stuff it up it's their own fault.[/QUOTE]
The eventual goal is to have this fairly idiot-proof, I can't set the bar too low. I also can't be bothered finding a host for a couple lines of JSON.
Also, once I'm about done with this, I'm abandoning it like a prom-night newborn. It's going to work perfectly fine for about a year/year and a half, then break spectacularly when the forums get updated to the latest and greatest software, then myself/another poor sap will update this again. [sp]Essentially, the same pattern started in mid 2007.[/sp]
Figured it out, user filtering is case sensitive.
[QUOTE=nicatronTg;27798145]Figured it out, user filtering is case sensitive.[/QUOTE]
Yup. Exact comparisons.
[img]http://i.imgur.com/NOeth.png[/img]
I get that in FF4 beta 10
versus this from the OP
[media]http://c.imagehost.org/0494/filter_debug.png[/media]
Is that something you can easily fix or is it a bug that will last until the FF4 release?
You need to turn autofilter in options to see the Filter and Lists.
[QUOTE=Atokniro;27831111][img_thumb]http://i.imgur.com/NOeth.png[/img_thumb]
I get that in FF4 beta 10
versus this from the OP
[media]http://c.imagehost.org/0494/filter_debug.png[/media]
Is that something you can easily fix or is it a bug that will last until the FF4 release?[/QUOTE]
See Blackbird88's post, turn on a filter to be able to configure it.
:sonia: :gb2hd2k: :coolfish: :golgo: :pluto:
The emotes work.
Sorry, you need to Log In to post a reply to this thread.