Welcome Guest ( Log In | Register )

4 Pages V  1 2 3 > »   
Reply to this topicStart new topic
> HV Random Encounter Notification, It does what is says...

 
post Mar 26 2012, 21:11
Post #1
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


So I'm thinking it's a little annoying not remembering to check the main page in time for the hourlies, thus let some time pass by and resulting in less REs done a day. So what about a simple script that notifies/reminds us? Basically the script does this:
_ When you start an hourly, it reads the page address and recognizes the pattern (http://hentaiverse.org/?s=Battle&ss=ba&encounter=*)
_ It then saves the current time (hour and minute) into local storage.
_ Then each time any HV page is loaded (character, bazaar, any thing hentaiverse.org/*), it compares the two points of time and displays the remaining time (maybe on the top right corner, but whatever).
_ And when the time exceeds 1 hour, it changes to an icon easy to notice (maybe this Attached Image). So the user can easily know when to visit the main page for the random encounter.
I think it's pretty easy to write this script for all the javascript gurus out there, so anyone have some spare time? Of course if no one is willing, I can write it (but it will take some unnecessary more time and efforts since I'm no js expert).


TL;DR: Never miss RE anymore!

For any version to work, you must start a random encounter once for it to save the time.

EDIT (changelog):
1. First version from sigo8: https://forums.e-hentai.org/index.php?s=&am...t&p=1771694

2. Another version from me (modified from sigo8's)
When it's not yet time for RE:
Attached Image
When it's time (or if you haven't started any RE since installing it)
Attached Image
You can even click on Ready and it will navigate to the main page for manual RE starting.
Download: Attached File  hvrenv1.0.2.user.j.txt ( 1.76k ) Number of downloads: 859

(rename it to .js to use, since the forum doesn't allow that extension)

3. An updated version from sigo8, now fixed the problem with countdown starting from the end of battle (it now starts from the beginning) and the timer also counts down too.
Link to post: https://forums.e-hentai.org/index.php?s=&am...t&p=1773798

4. sigo8's fix which includes a new way to determine the first round of a random encounter, and fixes the glitch in the equipment page:
https://forums.e-hentai.org/index.php?s=&am...t&p=1775800

5. Small modification from me, which includes a different way of determining the first round (this time I used a toggle flag). Also implemented timer reset at dawn (not fully tested yet)
Attached File  hvren.1.1.2.user.zip ( 1.08k ) Number of downloads: 46
Bug found. Fixing. Use sigo8's latest version instead.

6. Newest version from sigo8
https://forums.e-hentai.org/index.php?s=&am...t&p=1778852

7. Another update from sigo8
QUOTE
Removed dependence on url. Should work as long as you don't make a move before switching bowers.

https://forums.e-hentai.org/index.php?s=&am...t&p=1804491

This post has been edited by LangTuTaiHoa: Apr 8 2012, 08:54
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 00:47
Post #2
dennyzz



No Shame
****
Group: Members
Posts: 347
Joined: 3-June 07
Level 287 (Godslayer)


That'd be pretty useful, I forget my hourlies all the time
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 01:44
Post #3
Kaosumx



(╯°□°)╯︵ ┻━┻
********
Group: Gold Star Club
Posts: 3,362
Joined: 20-February 12
Level 271 (Godslayer)


Could be useful. I'm fairly consistent about checking every hour or so though but saving even a few minutes can add up.

Wish hourly encounters actually worked though right now. Is anyone else just getting "JuicyAds: This adserver is temporarily offline and will return shortly." ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 02:14
Post #4
ChosenUno



A Legendary Collector
********
Group: Gold Star Club
Posts: 4,170
Joined: 23-February 10
Level 422 (Godslayer)


QUOTE(LangTuTaiHoa @ Mar 27 2012, 02:11) *

So I'm thinking it's a little annoying not remembering to check the main page in time for the hourlies, thus let some time pass by and resulting in less REs done a day. So what about a simple script that notifies/reminds us? Basically the script does this:
_ When you start an hourly, it reads the page address and recognizes the pattern (http://hentaiverse.org/?s=Battle&ss=ba&encounter=*)
_ It then saves the current time (hour and minute) into local storage.
_ Then each time any HV page is loaded (character, bazaar, any thing hentaiverse.org/*), it compares the two points of time and displays the remaining time (maybe on the top right corner, but whatever).
_ And when the time exceeds 1 hour, it changes to an icon easy to notice (maybe this Attached Image). So the user can easily know when to visit the main page for the random encounter.
I think it's pretty easy to write this script for all the javascript gurus out there, so anyone have some spare time? Of course if no one is willing, I can write it (but it will take some unnecessary more time and efforts since I'm no js expert).


I can give it a try I suppose. But it'll probably take a while. Like a few days minimum.

I'll get back to you when I'm finished. Won't be too long now.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 02:26
Post #5
etothex



No I said.
********
Group: Members
Posts: 4,557
Joined: 18-May 09
Level 417 (Godslayer)


i expect more from you bro, the notification icon should obviously be a glittering/sparkling pony. (IMG:[invalid] style_emoticons/default/tongue.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 03:22
Post #6
ChosenUno



A Legendary Collector
********
Group: Gold Star Club
Posts: 4,170
Joined: 23-February 10
Level 422 (Godslayer)


QUOTE(etothex @ Mar 27 2012, 07:26) *

i expect more from you bro, the notification icon should obviously be a glittering/sparkling pony. (IMG:[invalid] style_emoticons/default/tongue.gif)


Lol. No way. If I'm making it, it'll just be a simple count down, with a popup dialog when it's time. That's all. No ponies! (IMG:[invalid] style_emoticons/default/duck.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 07:53
Post #7
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,652
Joined: 9-November 11
Level 500 (Ponyslayer)


Done. Not thoroughly tested but it should works.
It add 3 exclamation marks to the word "BATTLE" the top bar. More accuarly it repaces (IMG:[g.ehgt.org] http://g.ehgt.org/hv050/img/m/Battle.png) with BATTLE!!!
Attached File  hvren.user.js.zip ( 527bytes ) Number of downloads: 35

Fuck. Fixed the match pattern. stupid questionmark.
Attached File  hvren.1.0.1.user.js.zip ( 534bytes ) Number of downloads: 220


This post has been edited by sigo8: Mar 27 2012, 08:38
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 10:56
Post #8
etothex



No I said.
********
Group: Members
Posts: 4,557
Joined: 18-May 09
Level 417 (Godslayer)


it worked sigo8, thanks. (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 11:20
Post #9
ChosenUno



A Legendary Collector
********
Group: Gold Star Club
Posts: 4,170
Joined: 23-February 10
Level 422 (Godslayer)


Damn you're fast (IMG:[invalid] style_emoticons/default/laugh.gif)

Mine's just in testing phase. Should be done by tonight hopefully.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 11:36
Post #10
Apocalypse Horsemen



Can't Save the World⁇ Then Prepare for its END‼ ☠
**********
Group: Members
Posts: 8,028
Joined: 29-August 10
Level 290 (Godslayer)


QUOTE(sigo8 @ Mar 27 2012, 13:53) *

Done. Not thoroughly tested but it should works.
It add 3 exclamation marks to the word "BATTLE" the top bar. More accuarly it repaces (IMG:[g.ehgt.org] http://g.ehgt.org/hv050/img/m/Battle.png) with BATTLE!!!
Attached File  hvren.user.js.zip ( 527bytes ) Number of downloads: 35

Fuck. Fixed the match pattern. stupid questionmark.
Attached File  hvren.1.0.1.user.js.zip ( 534bytes ) Number of downloads: 220



So how does it work? Do you need to have a random encounter triggered to be registered first & the countdown begins from there?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 12:14
Post #11
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


Thanks a lot sigo8, the fixed one worked fine in chrome. I'm still working on my own version for more eye-candy though (IMG:[invalid] style_emoticons/default/tongue.gif)


QUOTE(cyberwaveIT @ Mar 27 2012, 16:36) *

So how does it work? Do you need to have a random encounter triggered to be registered first & the countdown begins from there?


Yeah, you have to start RE once for it to log the current time, then it will start working.

This post has been edited by LangTuTaiHoa: Mar 27 2012, 13:32
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 13:31
Post #12
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


Added my version to post #1, nothing special, just a little more convenient (IMG:[invalid] style_emoticons/default/tongue.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 27 2012, 13:35
Post #13
HMS Formidable



Veteran Poster
********
Group: Gold Star Club
Posts: 3,537
Joined: 30-December 10
Level 500 (Ponyslayer)


good tool
but i usually set a alarm clock every 1 hour (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 01:22
Post #14
aeridus



Active Poster
*******
Group: Catgirl Camarilla
Posts: 1,268
Joined: 22-July 09
Level 428 (Godslayer)


I stuck this in so that the timer doesn't display while I'm entrenched in Battles:
CODE
else if(location.href.indexOf("s=Battle") != -1)
{
    // Don't display
}


Otherwise refreshing that text repeatedly is just jarring. It's not like the notification is needed in-battle.

This post has been edited by aeridus: Mar 28 2012, 01:22
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 02:05
Post #15
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


QUOTE(aeridus @ Mar 28 2012, 06:22) *

I stuck this in so that the timer doesn't display while I'm entrenched in Battles:
CODE
else if(location.href.indexOf("s=Battle") != -1)
{
    // Don't display
}


Otherwise refreshing that text repeatedly is just jarring. It's not like the notification is needed in-battle.


Nice improvement (IMG:[invalid] style_emoticons/default/tongue.gif) . I'm still working on how to distinguish the first round of RE from the rest. Since currently the countdown starts at the end of the battle, which can be inaccurate if the delay between the battle start and end (the time you need to finish it) is long.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 03:52
Post #16
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,652
Joined: 9-November 11
Level 500 (Ponyslayer)


QUOTE(LangTuTaiHoa @ Mar 27 2012, 17:05) *

Nice improvement (IMG:[invalid] style_emoticons/default/tongue.gif) . I'm still working on how to distinguish the first round of RE from the rest. Since currently the countdown starts at the end of the battle, which can be inaccurate if the delay between the battle start and end (the time you need to finish it) is long.

Done, The timer also counts down now too.
Attached File  hvren.1.1.0.user.js.zip ( 988bytes ) Number of downloads: 78
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 05:13
Post #17
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


QUOTE(sigo8 @ Mar 28 2012, 08:52) *

Done, The timer also counts down now too.
Attached File  hvren.1.1.0.user.js.zip ( 988bytes ) Number of downloads: 78



Cool, updated reference to #1 post (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 05:56
Post #18
ChosenUno



A Legendary Collector
********
Group: Gold Star Club
Posts: 4,170
Joined: 23-February 10
Level 422 (Godslayer)


Damn, you guys really have a lot of time on your hands @_@.

I'm working on mine, but between work and assignments, my hands are tied.

I do have a few cool ideas though.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 07:48
Post #19
LangTuTaiHoa



Because a creative title is too mainstream
*******
Group: Banned
Posts: 1,792
Joined: 8-June 10
Level 265 (Godslayer)


Somehow this line doesn't work for me
QUOTE
location = "http://hentaiverse.org/?s=Battle&ss=ba";

Changing it into this worked though
QUOTE
location.href = "http://hentaiverse.org/?s=Battle&ss=ba";


QUOTE(ChosenUno @ Mar 28 2012, 10:56) *

Damn, you guys really have a lot of time on your hands @_@.

I'm working on mine, but between work and assignments, my hands are tied.

I do have a few cool ideas though.


Looking forward to your version (IMG:[invalid] style_emoticons/default/rolleyes.gif)

This post has been edited by LangTuTaiHoa: Mar 28 2012, 07:48
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 28 2012, 08:46
Post #20
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,652
Joined: 9-November 11
Level 500 (Ponyslayer)


QUOTE(LangTuTaiHoa @ Mar 27 2012, 22:48) *

Somehow this line doesn't work for me
QUOTE
location = "http://hentaiverse.org/?s=Battle&ss=ba";
Changing it into this worked though
QUOTE
location.href = "http://hentaiverse.org/?s=Battle&ss=ba";


What browser are you using and what version?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


4 Pages V  1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 9th August 2025 - 12:59