Aggressive Refresh and Hitlist Timer
|
|
Hey, it there anyway we can have the aggressive refresh auto-stop when the 15 min hitlist timer goes down to zero? This works great when the original Captcha comes up. Is there anyway to apply this to the new hitlist timer? |
|
|
ill update it when someone posts the code change. I search the DB every day for it, yet no solution has been presented. |
|
|
Well, luckily I came up with something. Place the following code:
Before this code:
|
|
|
You can just update it to pick up the new hitlist captcha's. Only takes a few lines of code. I made a version that works with the new Greasemonkey and does this. |
|
|
Or you do that. So (using Tim Smart's code), find
and replace it with
This code actually doesn't work for me. It does stop the agressive refresh, but any time I enter in the captcha it says it is incorrect. I'll just stick with what I previously had. Maybe it will work for other people though *shrug* |
|
|
it didnt work for me either, it stopped the script from functioning. |
|
|
There is one other section of code you have to update. So you have already mentioned do this: Find the following:
function captcha_gotcha()
{
var captcha = Utils.getElementsByClassName('cap');
if (captcha.length>0)
{
boss.got_captcha=true;
Replace with: function captcha_gotcha()
{
var captcha = Utils.getElementsByClassName('cap');
var hitlist_captcha = Utils.getElementsByXPath('.//input[@name="cap_value"]');
if (captcha.length>0||hitlist_captcha.length>0) boss.got_captcha=true;
Also find:
if (boss.preferences.hide_ads==undefined) boss.preferences.hide_ads = true;
if (boss.preferences.aggressive==undefined) boss.preferences.aggressive = false;
if (captcha.length>0)
{
hide();
adjust();
And replace with: if (boss.preferences.hide_ads==undefined) boss.preferences.hide_ads = true;
if (boss.preferences.aggressive==undefined) boss.preferences.aggressive = false;
if (captcha.length>0||hitlist_captcha.length>0)
{
hide();
adjust();
if(hitlist_captcha.length>0) var answer = Utils.getElementsByXPath('.//input[@name="cap_value"]')[0];
else var answer = Utils.getElementsByXPath('.//input[@name="cap_answer"]')[0];
|
|
|
I'm pretty sure you can change
to the following:
They do accomplish the same task, but I like simplifying scripts and what not. Your code seems to work, though I still have the issue when the normal captcha appears and I enter in the captcha, it is never right. |
|
|
Do you see it enter the answer into the box just before the form gets submitted? |
|
|
Tim i tried your script and it didnt work for me either. The MWcaptcha failed to be entered multiple times and i have 30 points. Also the change you suggested here caused my preferences to go blank and the script to go to resting. |
|
|
Well, I was going to report back to you, but it appears that is only captcha right now, at least for me. So, it's all working just fine. |