The script can now display a timer for a lottery thread as well. [github.com] Download Link unchanged.
I feel like the site providing the timer is kinda slow nowadays. Maybe reduce the default refresh interval to 300s? Or even better, maybe adjust the refresh interval for individual counters based on the time remaining? (ie refresh counters with a few minutes remaining more often than those with several hours remaining)
Actually, do you need to hit the countdown server at all? Just read the durations and put a javascript timer.
This post has been edited by Dan31: Jan 3 2015, 15:48
If I can figure out how much time remains from this url, then as you say, no need to visit the countdown server at all. But the problem is that I don't know how, or more precisely, can't be bothered to calculate it by myself, because time & timezone is too complex to deal with by myself:
But you are right, visiting the countdown server so frequently isn't a good thing, as it increases the server load. Maybe I should try to find a JS lib to deal with the time & timezone problem.
This post has been edited by djackallstar: Jan 3 2015, 16:20
If I can figure out how much time remains from this url, then as you say, no need to visit the countdown server at all. But the problem is that I don't know how, or more precisely, can't be bothered to calculate it by myself, because time & timezone is too complex to deal with by myself:
But you are right, visiting the countdown server so frequently isn't a good thing, as it increases the server load. Maybe I should try to find a JS lib to deal with the time & timezone problem.
Convert the time in the url into a javascript [www.w3schools.com] Date object, and construct a timer around this. It's not trivial, but not too hard either.
CODE
var now = new Date(); //current time var expiration_date = new Date(year, month, day, hours, minutes, seconds, milliseconds); //replace the values by what you parsed from the url var time_remaining = expiration_date - now; //then parse time_remaining with getFullYear(), getMonth(), etc. and print it (Maybe there is a simpler method, with a function doing the correct formatting?) //and then you have to use setInterval() to update time_remaining, putting a interval value equals to 1 unit of the rightmost bit should be enough
or if you don't understand either: - regex match url parameters - stuff them into an object for easy access - create a new utc date object - apply the timezone offset - subtract the current time from the utc date object to get the remaining time
*copy, paste, and run this in your browser console to see it in action
May i ask why i lost all the data n setting(like used the master reset) of the script after installing HV STAT (5.6.5.1)? Using chrome 39.0.2171.95 m thanks!
This post has been edited by showoff: Jan 11 2015, 20:48
I've modified HVSTAT slim Function is ・HP, Spark, Channeling Alert Alert more than once modified ・Adjust key event handling not to overrun when an alert is shown ・Nopopup, effectDurations, skillHotkey, Roundcounter ・Draw a line at the end of the turn ・The display on the left panel of the current equipment number
I don't know if this is the right place for this but this is just stupid of google. Disabling my extensions like it's their business to do so. Can someone please help me with this?
I don't know if this is the right place for this but this is just stupid of google. Disabling my extensions like it's their business to do so. Can someone please help me with this?
Latest firefox update seems to make the HVStat script crash the browser for me. Is anyone else getting this problem? Also, screw firefox for no in-built version rollback. If I want to use an older version, risk or no, I should be able to.
Latest firefox update seems to make the HVStat script crash the browser for me. Is anyone else getting this problem? Also, screw firefox for no in-built version rollback. If I want to use an older version, risk or no, I should be able to.
Hi everyone! I wonder if there are some script that will like "HP alert" pop up some message and stop everything when you have no Regen buff on yourself? If I remember correctly HVSTAT has something like that, but it slows down farm speed too much. If there is no such script, maybe someone could make it for Chrome please?
Hi everyone! I wonder if there are some script that will like "HP alert" pop up some message and stop everything when you have no Regen buff on yourself? If I remember correctly HVSTAT has something like that, but it slows down farm speed too much. If there is no such script, maybe someone could make it for Chrome please?
Hi everyone! I wonder if there are some script that will like "HP alert" pop up some message and stop everything when you have no Regen buff on yourself? If I remember correctly HVSTAT has something like that, but it slows down farm speed too much. If there is no such script, maybe someone could make it for Chrome please?
easy, if you are using HVSTAT slim, just add the following to the script:
CODE
var regenstatus = storage.getItem("regen") || "off";
Thanks for your help, but I know practically nothing about extensions and scripting, so I failed. I am using:
QUOTE(oohmrparis @ Mar 14 2014, 13:03)
I've modified HVSTAT slim Function is ・HP, Spark, Channeling Alert Alert more than once modified ・Adjust key event handling not to overrun when an alert is shown ・Nopopup, effectDurations, skillHotkey, Roundcounter ・Draw a line at the end of the turn ・The display on the left panel of the current equipment number
So I tried to create new extension for chrome with your script. regen.user.zip ( 320bytes )
Number of downloads: 59
And of course just copy and paste your script won't work, but this is limit of my skills. Maybe someone is kind enough to make this for me, so I just install the chrome extension and everything will work fine?
Thanks for your help, but I know practically nothing about extensions and scripting, so I failed. I am using:
So I tried to create new extension for chrome with your script. regen.user.zip ( 320bytes )
Number of downloads: 59
And of course just copy and paste your script won't work, but this is limit of my skills. Maybe someone is kind enough to make this for me, so I just install the chrome extension and everything will work fine?
I wonder u need to add those in the script but not create a new one?